/// <nodoc /> public ReadUsnJournalResult(ReadUsnJournalStatus status, Usn nextUsn, IReadOnlyCollection <UsnRecord> records) { Contract.Requires((status == ReadUsnJournalStatus.Success) == (records != null), "Records list should be present only on success"); Status = status; NextUsn = nextUsn; Records = records; }
/// <nodoc /> public ReadJournalResponse( Usn nextUsn, ReadUsnJournalStatus status, bool timeout = false) { NextUsn = nextUsn; Status = status; Timeout = timeout; }
public static void WriteUsnJournalReadStatus(this ChangeJournalServiceProtocolWriter writer, ReadUsnJournalStatus status) { Contract.Requires(writer != null); writer.Write((byte)status); }