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

            fieldInfo1.SetValue(objResult, temp1);
            return(objResult);
        }
Exemplo n.º 2
0
        public static object DeepCopier(object original)
        {
            Example.InventoryItemCreated input  = ((Example.InventoryItemCreated)(original));
            Example.InventoryItemCreated result = ((Example.InventoryItemCreated)(System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(Example.InventoryItemCreated))));
            Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
            object objResult = ((object)(result));
            object temp1     = input.Name;

            fieldInfo1.SetValue(objResult, temp1);
            return(objResult);
        }
Exemplo n.º 3
0
 void On(InventoryItemCreated e)
 {
     name   = e.Name;
     active = true;
 }
Exemplo n.º 4
0
 void On(InventoryItemCreated e)
 {
     name = e.Name;
     active = true;
 }
Exemplo n.º 5
0
 void On(InventoryItemCreated e)
 {
     name  = e.Name;
     State = nameof(Active);
 }
Exemplo n.º 6
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     Example.InventoryItemCreated input = ((Example.InventoryItemCreated)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Name, stream, typeof(string));
 }