Class OpenGenericReadModelInterceptorMustInterceptItsTypeParameter
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
The exception that is thrown when a discovered open generic read model interceptor does not implement IInterceptReadModel<TReadModel> over its own single type parameter.
public class OpenGenericReadModelInterceptorMustInterceptItsTypeParameter : Exception, ISerializable
- Inheritance
-
OpenGenericReadModelInterceptorMustInterceptItsTypeParameter
- Implements
- Inherited Members
- Extension Methods
Remarks
Such an interceptor can never be closed for a read model, so it would silently skip interception. Because interceptors are used for concerns such as redaction, that would fail open. It is rejected when the interceptors are discovered instead.
Constructors
OpenGenericReadModelInterceptorMustInterceptItsTypeParameter(Type)
The exception that is thrown when a discovered open generic read model interceptor does not implement IInterceptReadModel<TReadModel> over its own single type parameter.
public OpenGenericReadModelInterceptorMustInterceptItsTypeParameter(Type interceptorType)
Parameters
Remarks
Such an interceptor can never be closed for a read model, so it would silently skip interception. Because interceptors are used for concerns such as redaction, that would fail open. It is rejected when the interceptors are discovered instead.