Ejemplo n.º 1
0
        public SimulationVersionSnapshot CreateSnapshot()
        {
            var snapshot = new SimulationVersionSnapshot
            {
                Version = new VersionDataSnapshot(_version),
                Runs    = _runs
            };

            return(snapshot);
        }
Ejemplo n.º 2
0
 public SimulationVersion(SimulationVersionSnapshot snapshot)
 {
     _version  = new VersionData(snapshot.Version);
     _runs     = snapshot.Runs;
     _readonly = new ReadonlyMixin(true);
 }
Ejemplo n.º 3
0
 private SimulationVersion(SimulationVersionSnapshot snapshot, UserReference user) : this(snapshot)
 {
     _version  = _version.Increment(user);
     _readonly = new ReadonlyMixin(false);
 }