Skip to main content

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

Syntax
public static class AsyncEventHandlerExtensions

Methods

InvokeSerialAsync<TEventArgs>(AsyncEventHandler<TEventArgs>, object, TEventArgs, CancellationToken)

Invoke async event handler serial way

Declaration
public static Task InvokeSerialAsync<TEventArgs>(this AsyncEventHandler<TEventArgs> handler, object sender, TEventArgs args, CancellationToken token)
Parameters
TypeNameDescription
AsyncEventHandler<<TEventArgs>>handler
objectsender
{TEventArgs}args
CancellationTokentoken
Returns
TypeDescription
Task

InvokeParallelAsync<TEventArgs>(AsyncEventHandler<TEventArgs>, object, TEventArgs, CancellationToken)

Invoke async event handler parallel way

Declaration
public static Task InvokeParallelAsync<TEventArgs>(this AsyncEventHandler<TEventArgs> handler, object sender, TEventArgs args, CancellationToken token)
Parameters
TypeNameDescription
AsyncEventHandler<<TEventArgs>>handler
objectsender
{TEventArgs}args
CancellationTokentoken
Returns
TypeDescription
Task