Delegate AsyncEventMessageFactory<TSaga, T>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public delegate Task<T> AsyncEventMessageFactory<TSaga, T>(BehaviorContext<TSaga> context) where TSaga : class, ISaga where T : class
Parameters
context
BehaviorContext<TSaga>
Returns
- Task<T>
Type Parameters
TSaga
T
Constructors
AsyncEventMessageFactory(object, nint)
public AsyncEventMessageFactory(object @object, nint method)
Parameters
Methods
BeginInvoke(BehaviorContext<TSaga>, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(BehaviorContext<TSaga> context, AsyncCallback callback, object @object)
Parameters
context
BehaviorContext<TSaga>callback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual Task<T> EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
- Task<T>
Invoke(BehaviorContext<TSaga>)
public virtual Task<T> Invoke(BehaviorContext<TSaga> context)
Parameters
context
BehaviorContext<TSaga>
Returns
- Task<T>