Click or drag to resize

WeakAsynchronousEvent Class

Asynchronous event with no arguments. The event handlers are stored as weak references, in order to not prevent the event handler instances to be garbage collected. The event handlers can be executed either parallel or serial. All functions of this class are thread safe.
Inheritance Hierarchy
SystemObject
  AltaxoWeakAsynchronousEvent

Namespace: Altaxo
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class WeakAsynchronousEvent

The WeakAsynchronousEvent type exposes the following members.

Constructors
 NameDescription
Public methodWeakAsynchronousEventInitializes a new instance of the WeakAsynchronousEvent class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInvokeParallel Invokes all event handlers in parallel.
Public methodInvokeSerial Invokes the event handlers in serial order. If one or more event handlers fail, the other event handlers are executed nevertheless.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSubscribe Subscribes the eventHandler to the event.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUnsubscribe Unsubscribes the eventHandler from the event.
Top
See Also