Exemple #1
0
 /// <summary>
 /// Creates a UsnRecord
 /// </summary>
 public UsnRecord(FileId file, FileId container, Usn usn, UsnChangeReasons reasons)
 {
     FileId          = file;
     ContainerFileId = container;
     Usn             = usn;
     Reason          = reasons;
 }
Exemple #2
0
        /// <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;
        }
Exemple #3
0
 /// <summary>
 /// Creates a MiniUsnRecord
 /// </summary>
 public MiniUsnRecord(FileId file, Usn usn)
 {
     FileId = file;
     Usn    = usn;
 }