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

            fieldInfo1.SetValue(objResult, temp1);
            return(objResult);
        }
예제 #2
0
        public static object DeepCopier(object original)
        {
            Example.InventoryItemCheckedIn input  = ((Example.InventoryItemCheckedIn)(original));
            Example.InventoryItemCheckedIn result = ((Example.InventoryItemCheckedIn)(System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(Example.InventoryItemCheckedIn))));
            Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
            object objResult = ((object)(result));
            object temp1     = input.Quantity;

            fieldInfo1.SetValue(objResult, temp1);
            return(objResult);
        }
예제 #3
0
 void On(InventoryItemCheckedIn e) => total   += e.Quantity;
예제 #4
0
 void On(InventoryItemCheckedIn e)   => total += e.Quantity;
예제 #5
0
 public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     Example.InventoryItemCheckedIn input = ((Example.InventoryItemCheckedIn)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Quantity, stream, typeof(int));
 }
예제 #6
0
 public void On(InventoryItemCheckedIn e)
 {
     total += e.Quantity;
 }
예제 #7
0
파일: Domain.cs 프로젝트: zloom/Orleankka
 public void On(InventoryItemCheckedIn e)
 {
     total += e.Quantity;
 }