Class AsyncEventHandlerExtensions
OptimaJet.Workflow.Core.Utils.AsyncEventHandlerExtensions
Namespace: OptimaJet.Workflow.Core.Utils
public static class AsyncEventHandlerExtensionsInheritance
- System.Object
Methods
public static Task InvokeSerialAsync<TEventArgs>(this AsyncEventHandler<TEventArgs> handler, object sender, TEventArgs args, CancellationToken token) #Invoke async event handler serial way
Parameters
Name
Type
Description
handlerAsyncEventHandler<TEventArgs>senderObjectargs{TEventArgs}tokenCancellationTokenReturns
Type
Description
Taskpublic static Task InvokeParallelAsync<TEventArgs>(this AsyncEventHandler<TEventArgs> handler, object sender, TEventArgs args, CancellationToken token) #Invoke async event handler parallel way
Parameters
Name
Type
Description
handlerAsyncEventHandler<TEventArgs>senderObjectargs{TEventArgs}tokenCancellationTokenReturns
Type
Description
Task