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

            return(new InheritedCheckpointState(
                       r.NextDouble(),
                       r.Next(100),
                       new Uri("bing://test"),
                       FlatClass.Create()));
        }
Exemplo n.º 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)
            });
        }
Exemplo n.º 4
0
 private InheritedCheckpointState(double anotherState, int anotherId, Uri id, FlatClass userState)
     : base(id, userState)
 {
     AnotherId     = anotherId;
     _anotherState = anotherState;
 }
Exemplo n.º 5
0
 protected CheckpointState(Uri id, FlatClass userState)
 {
     Id             = id;
     this.userState = userState;
 }