/// <summary> /// Creates the new data from call snapshot. /// </summary> /// <param name="callSnapshot">The call snapshot.</param> private void createNewDataFromCallSnapshot(Snapshot callSnapshot) { Data = Factories.SnapshotDataFactory.CopyInstance(callSnapshot.CurrentData); writeableTargetData = Data.Writeable; writeableTargetData.ReinitializeTracker(callSnapshot.CurrentData.Readonly); }
/// <summary> /// Creates the new data from common ancestor. /// </summary> /// <param name="commonAncestor">The common ancestor.</param> private void createNewDataFromCommonAncestor(IReadonlyChangeTracker <IReadOnlySnapshotData> commonAncestor) { Data = Factories.SnapshotDataFactory.CreateNewInstanceWithData(commonAncestor.Container); writeableTargetData = Data.Writeable; writeableTargetData.ReinitializeTracker(commonAncestor.Container); }