Class HandlerFactory
- Namespace
- Savvyio
- Assembly
- Savvyio.Core.dll
Provides access to factory methods for creating and configuring generic handlers that supports MEP.
public static class HandlerFactory- Inheritance
- 
      objectHandlerFactory
Methods
CreateFireForget<TRequest>(Action<IFireForgetRegistry<TRequest>>)
Creates an instance of a Fire-and-Forget/In-Only MEP activator responsible of invoking delegates that handles TRequest.
public static IFireForgetActivator<TRequest> CreateFireForget<TRequest>(Action<IFireForgetRegistry<TRequest>> handlerRegistrar)Parameters
- handlerRegistrarAction<IFireForgetRegistry<TRequest>>
- The delegate responsible for registering delegates of type - TRequest.
Returns
- IFireForgetActivator<TRequest>
- An implementation of the IFireForgetActivator<TRequest> interface responsible of invoking delegates that handles - TRequest.
Type Parameters
- TRequest
- The type of the model to handle. 
CreateRequestReply<TRequest>(Action<IRequestReplyRegistry<TRequest>>)
Creates an instance of a Request-Reply/In-Out MEP activator responsible of invoking delegates that handles TRequest.
public static IRequestReplyActivator<TRequest> CreateRequestReply<TRequest>(Action<IRequestReplyRegistry<TRequest>> handlerRegistrar)Parameters
- handlerRegistrarAction<IRequestReplyRegistry<TRequest>>
- The delegate responsible for registering delegates of type - TRequest.
Returns
- IRequestReplyActivator<TRequest>
- An implementation of the IRequestReplyActivator<TRequest> interface responsible of invoking delegates that handles - TRequest.
Type Parameters
- TRequest
- The type of the model to handle.