次の方法で共有


AsyncMulticastDelegate<TParam1> Class

Definition

A class wrapping a multicast delegate of asynchronous functions to be used as backing for an event.

public class AsyncMulticastDelegate<TParam1>
type AsyncMulticastDelegate<'TParam1> = class
Public Class AsyncMulticastDelegate(Of TParam1)

Type Parameters

TParam1

The type of the first parameter of the delegate.

Inheritance
AsyncMulticastDelegate<TParam1>

Remarks

All methods are thread safe and protected from concurrent operations by a lock statement.

Constructors

AsyncMulticastDelegate<TParam1>()

Methods

AddHandler(Func<TParam1,Task>)

Atomically adds a handler to the invocation list.

InvokeAsync(TParam1)

Starts the execution of all handlers in the invocation list.

InvokeHandlerIfInInvocationListAsync(Func<TParam1,Task>, TParam1)

Atomically checks if value is in the invocation list and invokes it if it is.

RemoveHandler(Func<TParam1,Task>)

Atomically removes a handler from the invocation list.

Applies to