public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected)
 {
     EventJournal.Event input = ((EventJournal.Event)(untypedInput));
     Orleans.Serialization.SerializationManager.SerializeInner(input.AdditionalData, stream, typeof(System.Collections.Generic.IDictionary <System.String, Newtonsoft.Json.Linq.JToken>));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Arguments, stream, typeof(object[]));
     Orleans.Serialization.SerializationManager.SerializeInner(input.CorrelationId, stream, typeof(System.Guid));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Extras, stream, typeof(System.Collections.Generic.Dictionary <System.String, System.Object>));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Id, stream, typeof(long));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Time, stream, typeof(System.DateTime));
     Orleans.Serialization.SerializationManager.SerializeInner(input.To, stream, typeof(EventJournal.Address));
     Orleans.Serialization.SerializationManager.SerializeInner(input.Type, stream, typeof(string));
     Orleans.Serialization.SerializationManager.SerializeInner(input.UserId, stream, typeof(System.Nullable <System.Guid>));
 }
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     EventJournal.Event result = new EventJournal.Event();
     result.AdditionalData = ((System.Collections.Generic.IDictionary <System.String, Newtonsoft.Json.Linq.JToken>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Collections.Generic.IDictionary <System.String, Newtonsoft.Json.Linq.JToken>), stream)));
     result.Arguments      = ((object[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(object[]), stream)));
     result.CorrelationId  = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream)));
     result.Extras         = ((System.Collections.Generic.Dictionary <System.String, System.Object>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Collections.Generic.Dictionary <System.String, System.Object>), stream)));
     result.Id             = ((long)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(long), stream)));
     result.Time           = ((System.DateTime)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.DateTime), stream)));
     result.To             = ((EventJournal.Address)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(EventJournal.Address), stream)));
     result.Type           = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     result.UserId         = ((System.Nullable <System.Guid>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Nullable <System.Guid>), stream)));
     return(result);
 }
 public static object DeepCopier(object original)
 {
     EventJournal.Event input  = ((EventJournal.Event)(original));
     EventJournal.Event result = new EventJournal.Event();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.AdditionalData = ((System.Collections.Generic.IDictionary <System.String, Newtonsoft.Json.Linq.JToken>)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.AdditionalData)));
     result.Arguments      = ((object[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Arguments)));
     result.CorrelationId  = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.CorrelationId)));
     result.Extras         = ((System.Collections.Generic.Dictionary <System.String, System.Object>)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Extras)));
     result.Id             = input.Id;
     result.Time           = input.Time;
     result.To             = ((EventJournal.Address)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.To)));
     result.Type           = input.Type;
     result.UserId         = ((System.Nullable <System.Guid>)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.UserId)));
     return(result);
 }
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     EventJournal.Event result = new EventJournal.Event();
     result.AdditionalData = ((System.Collections.Generic.IDictionary<System.String,Newtonsoft.Json.Linq.JToken>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Collections.Generic.IDictionary<System.String,Newtonsoft.Json.Linq.JToken>), stream)));
     result.Arguments = ((object[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(object[]), stream)));
     result.CorrelationId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream)));
     result.Extras = ((System.Collections.Generic.Dictionary<System.String,System.Object>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Collections.Generic.Dictionary<System.String,System.Object>), stream)));
     result.Id = ((long)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(long), stream)));
     result.Time = ((System.DateTime)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.DateTime), stream)));
     result.To = ((EventJournal.Address)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(EventJournal.Address), stream)));
     result.Type = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream)));
     result.UserId = ((System.Nullable<System.Guid>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Nullable<System.Guid>), stream)));
     return result;
 }
 public static object DeepCopier(object original)
 {
     EventJournal.Event input = ((EventJournal.Event)(original));
     EventJournal.Event result = new EventJournal.Event();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.AdditionalData = ((System.Collections.Generic.IDictionary<System.String,Newtonsoft.Json.Linq.JToken>)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.AdditionalData)));
     result.Arguments = ((object[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Arguments)));
     result.CorrelationId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.CorrelationId)));
     result.Extras = ((System.Collections.Generic.Dictionary<System.String,System.Object>)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Extras)));
     result.Id = input.Id;
     result.Time = input.Time;
     result.To = ((EventJournal.Address)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.To)));
     result.Type = input.Type;
     result.UserId = ((System.Nullable<System.Guid>)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.UserId)));
     return result;
 }