Пример #1
0
 /// <summary>
 /// Creates a RevisionData object based on a single changeset and a branch name of "default".
 /// This object model is included to later support changesets and branching (May 2011 - APN).
 /// </summary>
 public static RevisionData CreateDefault(HiveId id, RevisionStatusType revisionStatusType, DateTimeOffset utcCreated, DateTimeOffset utcModified, DateTimeOffset utcStatusChanged)
 {
     var output = new RevisionData
                      {
                          Id = id,
                          StatusType = revisionStatusType,
                          UtcCreated = utcCreated,
                          UtcModified = utcModified,
                          UtcStatusChanged = utcStatusChanged
                      };
     return output;
 }
Пример #2
0
        /// <summary>
        /// Creates a RevisionData object based on a single changeset and a branch name of "default".
        /// This object model is included to later support changesets and branching (May 2011 - APN).
        /// </summary>
        public static RevisionData CreateDefault(HiveId id, RevisionStatusType revisionStatusType, DateTimeOffset utcCreated, DateTimeOffset utcModified, DateTimeOffset utcStatusChanged)
        {
            var output = new RevisionData
            {
                Id               = id,
                StatusType       = revisionStatusType,
                UtcCreated       = utcCreated,
                UtcModified      = utcModified,
                UtcStatusChanged = utcStatusChanged
            };

            return(output);
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 public Revision()
 {
     MetaData = new RevisionData(FixedStatusTypes.Created);
 }