Class ObserverInformation
- Namespace
- Cratis.Chronicle.Observation
- Assembly
- Cratis.Chronicle.dll
Represents what the event store knows about one of its observers.
public record ObserverInformation : IEquatable<ObserverInformation>
- Inheritance
-
ObserverInformation
- Implements
- Inherited Members
- Extension Methods
Constructors
ObserverInformation(ObserverId, EventSequenceId, ObserverType, ObserverRunningState, EventSequenceNumber, EventSequenceNumber, ulong)
Represents what the event store knows about one of its observers.
public ObserverInformation(ObserverId Id, EventSequenceId EventSequenceId, ObserverType Type, ObserverRunningState RunningState, EventSequenceNumber LastHandledEventSequenceNumber, EventSequenceNumber NextEventSequenceNumber, ulong HandledEventCount)
Parameters
IdObserverIdThe ObserverId identifying the observer.
EventSequenceIdEventSequenceIdThe EventSequenceId the observer observes.
TypeObserverTypeThe ObserverType of the observer.
RunningStateObserverRunningStateThe ObserverRunningState the observer is in.
LastHandledEventSequenceNumberEventSequenceNumberThe EventSequenceNumber of the last event handled.
NextEventSequenceNumberEventSequenceNumberThe next EventSequenceNumber the observer expects to handle.
HandledEventCountulongThe total number of events the observer has handled.
ObserverInformation(ObserverInformation)
protected ObserverInformation(ObserverInformation original)
Parameters
originalObserverInformation
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EventSequenceId
The EventSequenceId the observer observes.
public EventSequenceId EventSequenceId { get; init; }
Property Value
HandledEventCount
The total number of events the observer has handled.
public ulong HandledEventCount { get; init; }
Property Value
Id
The ObserverId identifying the observer.
public ObserverId Id { get; init; }
Property Value
LastHandledEventSequenceNumber
The EventSequenceNumber of the last event handled.
public EventSequenceNumber LastHandledEventSequenceNumber { get; init; }
Property Value
NextEventSequenceNumber
The next EventSequenceNumber the observer expects to handle.
public EventSequenceNumber NextEventSequenceNumber { get; init; }
Property Value
RunningState
The ObserverRunningState the observer is in.
public ObserverRunningState RunningState { get; init; }
Property Value
Type
The ObserverType of the observer.
public ObserverType Type { get; init; }
Property Value
Methods
Deconstruct(out ObserverId, out EventSequenceId, out ObserverType, out ObserverRunningState, out EventSequenceNumber, out EventSequenceNumber, out ulong)
public void Deconstruct(out ObserverId Id, out EventSequenceId EventSequenceId, out ObserverType Type, out ObserverRunningState RunningState, out EventSequenceNumber LastHandledEventSequenceNumber, out EventSequenceNumber NextEventSequenceNumber, out ulong HandledEventCount)
Parameters
IdObserverIdEventSequenceIdEventSequenceIdTypeObserverTypeRunningStateObserverRunningStateLastHandledEventSequenceNumberEventSequenceNumberNextEventSequenceNumberEventSequenceNumberHandledEventCountulong
Equals(ObserverInformation?)
public virtual bool Equals(ObserverInformation? other)
Parameters
otherObserverInformation
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ObserverInformation?, ObserverInformation?)
public static bool operator ==(ObserverInformation? left, ObserverInformation? right)
Parameters
leftObserverInformationrightObserverInformation
Returns
operator !=(ObserverInformation?, ObserverInformation?)
public static bool operator !=(ObserverInformation? left, ObserverInformation? right)
Parameters
leftObserverInformationrightObserverInformation