AsyncMulticastDelegate<TParam1> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
RemoveHandler(Func<TParam1,Task>) |
Atomically removes a handler from the invocation list. |