Interface IFireForgetRegistry<TRequest>
Specifies a Fire-and-Forget/In-Only MEP registry that store delegates responsible for handling type TRequest.
public interface IFireForgetRegistry<in TRequest>
Type Parameters
TRequestThe type of the model to store in the registry.
Methods
RegisterAsync<T>(Func<T, CancellationToken, Task>)
Registers the specified function delegate handler.
void RegisterAsync<T>(Func<T, CancellationToken, Task> handler) where T : class, TRequest
Parameters
handlerFunc<T, CancellationToken, Task>The function delegate that handles
T.
Type Parameters
TThe type that implements
TRequest.
Register<T>(Action<T>)
Registers the specified delegate handler.
void Register<T>(Action<T> handler) where T : class, TRequest
Parameters
handlerAction<T>The delegate that handles
T.
Type Parameters
TThe type that implements
TRequest.
See Also
IFireForgetActivator<TRequest>