Class CdcConsumerStatus
Provides metadata about a CDC consumer's processing status.
public sealed record CdcConsumerStatus : IEquatable<CdcConsumerStatus>
- Inheritance
-
CdcConsumerStatus
- Implements
- Inherited Members
- Extension Methods
Constructors
CdcConsumerStatus(string, ChangePosition?, ChangePosition?, DateTimeOffset?)
Provides metadata about a CDC consumer's processing status.
public CdcConsumerStatus(string ConsumerId, ChangePosition? CurrentPosition, ChangePosition? HeadPosition, DateTimeOffset? LastCheckpointTime)
Parameters
ConsumerIdstringThe unique identifier of the consumer.
CurrentPositionChangePositionThe last checkpointed position.
HeadPositionChangePositionThe current head position of the CDC stream (if known).
LastCheckpointTimeDateTimeOffset?When the last checkpoint was saved.
Properties
CanCalculateLag
Gets a value indicating whether lag information is available.
public bool CanCalculateLag { get; }
Property Value
ConsumerId
The unique identifier of the consumer.
public string ConsumerId { get; init; }
Property Value
CurrentPosition
The last checkpointed position.
public ChangePosition? CurrentPosition { get; init; }
Property Value
HasCheckpoint
Gets a value indicating whether the consumer has any checkpoint.
public bool HasCheckpoint { get; }
Property Value
HeadPosition
The current head position of the CDC stream (if known).
public ChangePosition? HeadPosition { get; init; }
Property Value
LastCheckpointTime
When the last checkpoint was saved.
public DateTimeOffset? LastCheckpointTime { get; init; }