public IncrementalBackupLogRecordAsyncEnumerator( string traceType, Guid backupId, IAsyncEnumerator <LogRecord> source, BackupLogRecord lastBackupLogRecord, IBackupRestoreProvider loggingReplicator) { this.traceType = traceType; this.backupId = backupId; this.source = source; this.lastBackupLogRecord = lastBackupLogRecord; this.loggingReplicator = loggingReplicator; this.startingEpoch = LoggingReplicator.InvalidEpoch; this.startingLsn = LogicalSequenceNumber.InvalidLsn; this.lastEpoch = LoggingReplicator.InvalidEpoch; this.lastLsn = LogicalSequenceNumber.InvalidLsn; this.count = 0; }
internal IncrementalBackupLogRecordAsyncEnumerator( string traceType, Guid backupId, IAsyncEnumerator <LogRecord> source, BackupLogRecord lastBackupLogRecord, Epoch startingEpoch, LogicalSequenceNumber startingLsn) { this.traceType = traceType; this.backupId = backupId; this.source = source; this.lastBackupLogRecord = lastBackupLogRecord; this.loggingReplicator = null; // TODO: verify startingEpoch & startingLsn is not invalid this.startingEpoch = startingEpoch; this.startingLsn = startingLsn; this.lastEpoch = LoggingReplicator.InvalidEpoch; this.lastLsn = LogicalSequenceNumber.InvalidLsn; this.count = 0; }