Delegate DispatchMiddlewareDelegate
- Namespace
- DurableTask.Core.Middleware
- Assembly
- DurableTask.Core.dll
A function that runs in the task execution middleware pipeline.
public delegate Task DispatchMiddlewareDelegate(DispatchMiddlewareContext context)
Parameters
context
DispatchMiddlewareContextThe DispatchMiddlewareContext for the task execution.
Returns
- Task
A task that represents the completion of the durable task execution.
Constructors
DispatchMiddlewareDelegate(object, nint)
public DispatchMiddlewareDelegate(object @object, nint method)
Parameters
Methods
BeginInvoke(DispatchMiddlewareContext, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(DispatchMiddlewareContext context, AsyncCallback callback, object @object)
Parameters
context
DispatchMiddlewareContextcallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual Task EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
Invoke(DispatchMiddlewareContext)
public virtual Task Invoke(DispatchMiddlewareContext context)
Parameters
context
DispatchMiddlewareContext