Class TypeMustImplementOnlyOneReducer
- Namespace
- Cratis.Chronicle.Reducers.Validators
- Assembly
- Cratis.Chronicle.dll
Exception that gets thrown when a type implements more than one IReducerFor<TReadModel>.
public class TypeMustImplementOnlyOneReducer : Exception, ISerializable
- Inheritance
-
TypeMustImplementOnlyOneReducer
- Implements
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of TypeMustImplementOnlyOneReducer.
Constructors
TypeMustImplementOnlyOneReducer(Type)
Exception that gets thrown when a type implements more than one IReducerFor<TReadModel>.
public TypeMustImplementOnlyOneReducer(Type type)
Parameters
typeTypeViolating type.
Remarks
Initializes a new instance of TypeMustImplementOnlyOneReducer.
Methods
ThrowIfTypeImplementsMoreThanOneReducer(Type)
Throw if the type implements more than one IReducerFor<TReadModel>.
public static void ThrowIfTypeImplementsMoreThanOneReducer(Type type)
Parameters
typeTypeType to check.
Exceptions
- TypeMustImplementOnlyOneReducer
Thrown if type implements more than one reducer.