Пример #1
0
 public static object DeepCopier(object original)
 {
     Test.Interfaces.PersonalAttributes input  = ((Test.Interfaces.PersonalAttributes)(original));
     Test.Interfaces.PersonalAttributes result = new Test.Interfaces.PersonalAttributes();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.FirstName = input.FirstName;
     result.Gender    = input.Gender;
     result.LastName  = input.LastName;
     return(result);
 }
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     Test.Interfaces.PersonalAttributes result = new Test.Interfaces.PersonalAttributes();
     result.FirstName = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     result.LastName = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     return result;
 }
 public static object DeepCopier(object original)
 {
     Test.Interfaces.PersonalAttributes input = ((Test.Interfaces.PersonalAttributes)(original));
     Test.Interfaces.PersonalAttributes result = new Test.Interfaces.PersonalAttributes();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.FirstName = input.FirstName;
     result.LastName = input.LastName;
     return result;
 }
Пример #4
0
 System.Threading.Tasks.Task Test.Interfaces.IPerson.Register(Test.Interfaces.PersonalAttributes person)
 {
     return(base.InvokeMethodAsync <object>(-1544510960, new object[] { person }));
 }
 public System.Threading.Tasks.Task Register(Test.Interfaces.PersonalAttributes person)
 {
     return(base.InvokeMethodAsync <object>(-1544510960, new object[] { person }, TimeSpan.Zero));
 }