Condividi tramite


AsyncEvent<TEventArgs> Class

Definition

Async Event class to support firing async EventHandlers

generic <typename TEventArgs>
 where TEventArgs : EventArgspublic ref class AsyncEvent
public class AsyncEvent<TEventArgs> where TEventArgs : EventArgs
type AsyncEvent<'EventArgs (requires 'EventArgs :> EventArgs)> = class
Public Class AsyncEvent(Of TEventArgs)

Type Parameters

TEventArgs

The EventArgs type to support

Inheritance
AsyncEvent<TEventArgs>

Constructors

AsyncEvent<TEventArgs>()

Initializes a new instance of the AsyncEvent<TEventArgs> class.

Properties

AsyncInvocations

Return the async invocation list

Methods

InsertCallback(AsyncEvent<TEventArgs>, Int32, Func<Object,TEventArgs,Task>)

Insert a callback in the specified position

InvokeAsync(Object, TEventArgs, Boolean)

Invoke async to await for each

InvokeAsync(Object, TEventArgs)

Invoke async to await for each

OnInvocationListChanged(Boolean)

Invoked when changes to the Invocation List are added or removed

Operators

Addition(AsyncEvent<TEventArgs>, Func<Object,TEventArgs,Task>)

Operator += to support standard mechanism of event subscription

Subtraction(AsyncEvent<TEventArgs>, Func<Object,TEventArgs,Task>)

Operator -= to support standard mechanism of event subscription

Applies to