Example #1
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes input = ((Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Age, stream, typeof(Int32));
     Orleans.Serialization.SerializationManager.SerializeInner(input.FirstName, stream, typeof(String));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Gender, stream, typeof(GenderType));
     Orleans.Serialization.SerializationManager.SerializeInner(input.LastName, stream, typeof(String));
 }
Example #2
0
 public static object Deserializer(System.Type expected, Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes result = new Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes();
     result.Age       = ((Int32)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Int32), stream)));
     result.FirstName = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     result.Gender    = ((GenderType)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(GenderType), stream)));
     result.LastName  = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     return(result);
 }
Example #3
0
 public static object DeepCopier(object original)
 {
     Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes input  = ((Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes)(original));
     Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes result = new Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.Age       = input.Age;
     result.FirstName = input.FirstName;
     result.Gender    = input.Gender;
     result.LastName  = input.LastName;
     return(result);
 }
Example #4
0
 public System.Threading.Tasks.Task SetPersonalAttributes(Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes person)
 {
     return(base.InvokeMethodAsync <object>(-1862634097, new object[] { person }, TimeSpan.Zero));
 }
 public static object Deserializer(System.Type expected, Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes result = new Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes();
     result.Age = ((Int32)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Int32), stream)));
     result.FirstName = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     result.Gender = ((GenderType)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(GenderType), stream)));
     result.LastName = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     return result;
 }
 public static object DeepCopier(object original)
 {
     Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes input = ((Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes)(original));
     Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes result = new Orleans.StorageProvider.RavenDB.TestInterfaces.PersonalAttributes();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.Age = input.Age;
     result.FirstName = input.FirstName;
     result.Gender = input.Gender;
     result.LastName = input.LastName;
     return result;
 }