Class AsyncEventHandlerExtensions
Inheritance
Object
AsyncEventHandlerExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: MongoDB.Entities
Assembly: MongoDB.Entities.dll
Syntax
public static class AsyncEventHandlerExtensions
Methods
GetHandlers<TEventArgs>(AsyncEventHandler<TEventArgs>)
Declaration
public static IEnumerable<AsyncEventHandler<TEventArgs>> GetHandlers<TEventArgs>(this AsyncEventHandler<TEventArgs> handler)
Parameters
Type | Name | Description |
---|---|---|
AsyncEventHandler<TEventArgs> | handler |
Returns
Type | Description |
---|---|
IEnumerable<AsyncEventHandler<TEventArgs>> |
Type Parameters
Name | Description |
---|---|
TEventArgs |
InvokeAllAsync<TEventArgs>(AsyncEventHandler<TEventArgs>, TEventArgs)
Declaration
public static Task InvokeAllAsync<TEventArgs>(this AsyncEventHandler<TEventArgs> handler, TEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
AsyncEventHandler<TEventArgs> | handler | |
TEventArgs | args |
Returns
Type | Description |
---|---|
Task |
Type Parameters
Name | Description |
---|---|
TEventArgs |