Class MultipleQueryPerformersForSameReadModel
- Namespace
- Cratis.Applications.Queries
- Assembly
- Cratis.Applications.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
- queryQueryName
- The 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.