Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }