Class AsyncEventHandlerExtensions
Inheritance
↳ object
↳ AsyncEventHandlerExtensions
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Utils
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic static class AsyncEventHandlerExtensions
Methods
InvokeSerialAsync<TEventArgs>(AsyncEventHandler<TEventArgs>, object, TEventArgs, CancellationToken)
Invoke async event handler serial way
Declarationpublic static Task InvokeSerialAsync<TEventArgs>(this AsyncEventHandler<TEventArgs> handler, object sender, TEventArgs args, CancellationToken token)
Type | Name | Description |
---|---|---|
AsyncEventHandler<<TEventArgs>> | handler | |
object | sender | |
{TEventArgs} | args | |
CancellationToken | token |
Type | Description |
---|---|
Task |
InvokeParallelAsync<TEventArgs>(AsyncEventHandler<TEventArgs>, object, TEventArgs, CancellationToken)
Invoke async event handler parallel way
Declarationpublic static Task InvokeParallelAsync<TEventArgs>(this AsyncEventHandler<TEventArgs> handler, object sender, TEventArgs args, CancellationToken token)
Type | Name | Description |
---|---|---|
AsyncEventHandler<<TEventArgs>> | handler | |
object | sender | |
{TEventArgs} | args | |
CancellationToken | token |
Type | Description |
---|---|
Task |