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); }
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); }
void On(InventoryItemCreated e) { name = e.Name; active = true; }
void On(InventoryItemCreated e) { name = e.Name; active = true; }
void On(InventoryItemCreated e) { name = e.Name; State = nameof(Active); }
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)); }