示例#1
0
        public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
        {
            Example.InventoryItemRenamed result = ((Example.InventoryItemRenamed)(System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(Example.InventoryItemRenamed))));
            object objResult = ((object)(result));
            object temp1     = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));

            fieldInfo1.SetValue(objResult, temp1);
            object temp2 = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));

            fieldInfo2.SetValue(objResult, temp2);
            return(objResult);
        }
示例#2
0
        public static object DeepCopier(object original)
        {
            Example.InventoryItemRenamed input  = ((Example.InventoryItemRenamed)(original));
            Example.InventoryItemRenamed result = ((Example.InventoryItemRenamed)(System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(Example.InventoryItemRenamed))));
            Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
            object objResult = ((object)(result));
            object temp1     = input.NewName;

            fieldInfo1.SetValue(objResult, temp1);
            object temp2 = input.OldName;

            fieldInfo2.SetValue(objResult, temp2);
            return(objResult);
        }
示例#3
0
 void On(InventoryItemRenamed e) => name       = e.NewName;
示例#4
0
 void On(InventoryItemRenamed e)     => name = e.NewName;
示例#5
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     Example.InventoryItemRenamed input = ((Example.InventoryItemRenamed)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.NewName, stream, typeof(string));
     Orleans.Serialization.SerializationManager.SerializeInner(input.OldName, stream, typeof(string));
 }
示例#6
0
 public void On(InventoryItemRenamed e)
 {
     name = e.NewName;
 }
示例#7
0
文件: Domain.cs 项目: zloom/Orleankka
 public void On(InventoryItemRenamed e)
 {
     name = e.NewName;
 }