Exemple #1
0
 public static CheckpointState Create()
 {
     return(new CheckpointState
     {
         Id = new Uri("contoso://testuri/"),
         userState = FlatClass.Create()
     });
 }
Exemple #2
0
        public static InheritedCheckpointState Create(int seed = 13)
        {
            var r = new Random(seed);

            return(new InheritedCheckpointState(
                       r.NextDouble(),
                       r.Next(100),
                       new Uri("contoso://test"),
                       FlatClass.Create()));
        }
Exemple #3
0
        public static NestedClass Create(int seed = 13)
        {
            var r = new Random(seed);

            return(new NestedClass()
            {
                NotSerializable = r.Next(),
                Serializable = r.Next(),
                TypeFlat = FlatClass.Create(seed)
            });
        }
Exemple #4
0
 private InheritedCheckpointState(double anotherState, int anotherId, Uri id, FlatClass userState)
     : base(id, userState)
 {
     AnotherId     = anotherId;
     _anotherState = anotherState;
 }
Exemple #5
0
 protected CheckpointState(Uri id, FlatClass userState)
 {
     Id             = id;
     this.userState = userState;
 }