Table of Contents

Class MultipleCommandHandlersForSameCommandType

Namespace
Cratis.Applications.Commands
Assembly
Cratis.Applications.dll

Exception that gets thrown when multiple command handlers are found for the same command type.

public class MultipleCommandHandlersForSameCommandType : Exception, ISerializable
Inheritance
MultipleCommandHandlersForSameCommandType
Implements
Inherited Members

Constructors

MultipleCommandHandlersForSameCommandType(Type)

Exception that gets thrown when multiple command handlers are found for the same command type.

public MultipleCommandHandlersForSameCommandType(Type commandType)

Parameters

commandType Type

The command type there is a duplicate of.

Methods

ThrowIfDuplicates(IEnumerable<ICommandHandler>)

Throw if there are multiple handlers handling the same command.

public static void ThrowIfDuplicates(IEnumerable<ICommandHandler> handlers)

Parameters

handlers IEnumerable<ICommandHandler>

The collection of ICommandHandler to check against.

Exceptions

MultipleCommandHandlersForSameCommandType

The exception that gets thrown if there are multiple.