Class MultipleQueryPerformersForSameReadModel
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
Exception that gets thrown when multiple query performers are found for the same query.
public class MultipleQueryPerformersForSameReadModel : Exception, ISerializable
- Inheritance
-
MultipleQueryPerformersForSameReadModel
- Implements
- Inherited Members
- Extension Methods
Constructors
MultipleQueryPerformersForSameReadModel(QueryName)
Exception that gets thrown when multiple query performers are found for the same query.
public MultipleQueryPerformersForSameReadModel(QueryName query)
Parameters
queryQueryNameThe query there is a duplicate of.
Methods
ThrowIfDuplicates(IEnumerable<IQueryPerformer>)
Throw if there are multiple handlers handling the same command.
public static void ThrowIfDuplicates(IEnumerable<IQueryPerformer> performers)
Parameters
performersIEnumerable<IQueryPerformer>The collection of IQueryPerformer to check against.
Exceptions
- MultipleQueryPerformersForSameReadModel
The exception that gets thrown if there are multiple.