Class DuplicateHandlerKeyException
- Namespace
- CarrotMQ.Core.Configuration
- Assembly
- CarrotMQ.Core.dll
Exception thrown when a duplicate handler key is detected during handler registration.
public sealed class DuplicateHandlerKeyException : Exception, ISerializable
- Inheritance
-
DuplicateHandlerKeyException
- Implements
- Inherited Members
Methods
CreateCommandHandlerException<TCommandHandler, TCommand, TResponse>(string)
Creates a DuplicateHandlerKeyException for a command handler registration issue.
public static DuplicateHandlerKeyException CreateCommandHandlerException<TCommandHandler, TCommand, TResponse>(string handlerKey) where TCommandHandler : CommandHandlerBase<TCommand, TResponse> where TCommand : _ICommand<TCommand, TResponse> where TResponse : class
Parameters
handlerKeystringThe handler key causing the registration issue.
Returns
- DuplicateHandlerKeyException
An instance of DuplicateHandlerKeyException.
Type Parameters
TCommandHandlerType of the command handler.
TCommandType of the command.
TResponseType of the response.
CreateEventHandlerException<TEventHandler, TEvent>(string)
Creates a DuplicateHandlerKeyException for an event handler registration issue.
public static DuplicateHandlerKeyException CreateEventHandlerException<TEventHandler, TEvent>(string handlerKey) where TEventHandler : EventHandlerBase<TEvent> where TEvent : _IMessage<TEvent, NoResponse>
Parameters
handlerKeystringThe handler key causing the registration issue.
Returns
- DuplicateHandlerKeyException
An instance of DuplicateHandlerKeyException.
Type Parameters
TEventHandlerType of the event handler.
TEventType of the event.
CreateQueryHandlerException<TQueryHandler, TQuery, TResponse>(string)
Creates a DuplicateHandlerKeyException for a query handler registration issue.
public static DuplicateHandlerKeyException CreateQueryHandlerException<TQueryHandler, TQuery, TResponse>(string handlerKey) where TQueryHandler : QueryHandlerBase<TQuery, TResponse> where TQuery : _IQuery<TQuery, TResponse> where TResponse : class
Parameters
handlerKeystringThe handler key causing the registration issue.
Returns
- DuplicateHandlerKeyException
An instance of DuplicateHandlerKeyException.
Type Parameters
TQueryHandlerType of the query handler.
TQueryType of the query.
TResponseType of the response.
CreateResponseHandlerException<TResponseHandler, TRequest, TResponse>(string)
Creates a DuplicateHandlerKeyException for a response handler registration issue.
public static DuplicateHandlerKeyException CreateResponseHandlerException<TResponseHandler, TRequest, TResponse>(string handlerKey) where TResponseHandler : ResponseHandlerBase<TRequest, TResponse> where TRequest : _IRequest<TRequest, TResponse> where TResponse : class
Parameters
handlerKeystringThe handler key causing the registration issue.
Returns
- DuplicateHandlerKeyException
An instance of DuplicateHandlerKeyException.
Type Parameters
TResponseHandlerType of the response handler.
TRequestType of the request.
TResponseType of the response.