Create Method
Definition
- Assemblies
- Savvyio.Core.dll
Create<TRequest, THandler>(TRequest, string)
Creates a new instance of OrphanedHandlerException using the provided generic type arguments.
public static OrphanedHandlerException Create<TRequest, THandler>(TRequest request, string paramName) where TRequest : IRequest where THandler : IHandler<TRequest>
Parameters
requestTRequestThe model that is being handled by a registered delegate.
paramNamestringThe name of the parameter that caused the current exception.
Returns
- OrphanedHandlerException
A new instance of OrphanedHandlerException initialized from the provided generic type arguments.
Type Parameters
TRequestThe type of the input model registered to a handler.
THandlerThe type of the handler to locate the input model.