public BatchMessageId(MessageId other) : base(other.LedgerId, other.EntryId, other.PartitionIndex) { if (other is BatchMessageId otherId) { BatchIndex = otherId.BatchIndex; _batchSize = otherId.BatchSize; Acker = otherId.Acker; } else { BatchIndex = NoBatch; _batchSize = 0; Acker = BatchMessageAckerDisabled.Instance; } }
public BatchMessageId(long ledgerId, long entryId, int partitionIndex, int batchIndex, int batchSize, BatchMessageAcker acker) : base(ledgerId, entryId, partitionIndex) { BatchIndex = batchIndex; _batchSize = batchSize; Acker = acker; }