Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 void On(InventoryItemRenamed e) => name       = e.NewName;
Exemplo n.º 4
0
 void On(InventoryItemRenamed e)     => name = e.NewName;
Exemplo n.º 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));
 }
Exemplo n.º 6
0
 public void On(InventoryItemRenamed e)
 {
     name = e.NewName;
 }
Exemplo n.º 7
0
 public void On(InventoryItemRenamed e)
 {
     name = e.NewName;
 }