Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Change"/> class.
 /// </summary>
 /// <param name="changeType">Type of the change</param>
 /// <param name="data">Persisted data associated with the change</param>
 public Change(ChangeType changeType, PersistedData data)
 {
     this.ChangeType = changeType;
     this.Data       = data;
 }
Esempio n. 2
0
        /// <summary>
        /// Records an existing persisted being removed
        /// </summary>
        /// <param name="data">Persisted data being removed</param>
        internal void RecordRemove(PersistedData data)
        {
            var change = new Change(ChangeType.Remove, data);

            this.Changes.Add(change);
        }