Class DecisionReadRefused
- Namespace
- Cratis.Chronicle.ReadModels
- Assembly
- Cratis.Chronicle.dll
Thrown before enrollment when a decision read cannot be protected.
public class DecisionReadRefused : Exception, ISerializable
- Inheritance
-
DecisionReadRefused
- Implements
- Inherited Members
- Extension Methods
Constructors
DecisionReadRefused(DecisionReadRefusalReason, Type)
Initializes a new instance of the DecisionReadRefused class.
public DecisionReadRefused(DecisionReadRefusalReason reason, Type readModelType)
Parameters
reasonDecisionReadRefusalReasonThe refusal reason.
readModelTypeTypeThe read model type.
DecisionReadRefused(DecisionReadRefusalReason, Type, string?)
Thrown before enrollment when a decision read cannot be protected.
public DecisionReadRefused(DecisionReadRefusalReason reason, Type readModelType, string? detail)
Parameters
reasonDecisionReadRefusalReasonThe refusal reason.
readModelTypeTypeThe read model type.
detailstringOptional diagnostic detail without definition values or event content.
Properties
ReadModelType
Gets the refused model type.
public Type ReadModelType { get; }
Property Value
Reason
Gets the refusal reason.
public DecisionReadRefusalReason Reason { get; }