public static void Serializer(object untypedInput, Orleans.Serialization.BinaryTokenStreamWriter stream, System.Type expected) { Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo input = ((Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo)(untypedInput)); Orleans.Serialization.SerializationManager.SerializeInner(input.Amount, stream, typeof(decimal)); Orleans.Serialization.SerializationManager.SerializeInner(input.FromAccountId, stream, typeof(System.Guid)); Orleans.Serialization.SerializationManager.SerializeInner(input.ToAccountId, stream, typeof(System.Guid)); }
public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream) { Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo result = new Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo(); result.Amount = ((decimal)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(decimal), stream))); result.FromAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream))); result.ToAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream))); return(result); }
public static object DeepCopier(object original) { Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo input = ((Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo)(original)); Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo result = new Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo(); Orleans.Serialization.SerializationContext.Current.RecordObject(original, result); result.Amount = input.Amount; result.FromAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.FromAccountId))); result.ToAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.ToAccountId))); return(result); }
public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream) { Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo result = new Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo(); result.Amount = ((decimal)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(decimal), stream))); result.FromAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream))); result.ToAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(System.Guid), stream))); return result; }
public static object DeepCopier(object original) { Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo input = ((Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo)(original)); Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo result = new Orleans.EventSourcing.SimpleInterface.TransferTransactionInfo(); Orleans.Serialization.SerializationContext.Current.RecordObject(original, result); result.Amount = input.Amount; result.FromAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.FromAccountId))); result.ToAccountId = ((System.Guid)(Orleans.Serialization.SerializationManager.DeepCopyInner(input.ToAccountId))); return result; }
public TransferInConfirmedEvent(Guid transactionId, TransferTransactionInfo transactionInfo) : base(transactionId, transactionInfo) { }
public AccountValidatePassedEvent(Guid transactionId, TransferTransactionInfo transactionInfo) : base(transactionId, transactionInfo) { }
public TransferTransactionStartedEvent(Guid transactionId, TransferTransactionInfo transactionInfo) : base(transactionId, transactionInfo) { }
public AbstractTransferTransactionEvent(Guid transactionId, TransferTransactionInfo transactionInfo) { this.TransferTransactionId = transactionId; this.TransferTransactionInfo = transactionInfo; }
private void InitStateFields() { this.Version = default(UInt64); this.Status = default(TransactionStatus); this.TransferOutPreparationConfirmed = default(Boolean); this.TransferInPreparationConfirmed = default(Boolean); this.TransferOutConfirmed = default(Boolean); this.TransferInConfirmed = default(Boolean); this.AccountValidatedAt = default(DateTime); this.TransferOutPreparationConfirmedAt = default(DateTime); this.TransferInPreparationConfirmedAt = default(DateTime); this.TransferOutConfirmedAt = default(DateTime); this.TransferInConfirmedAt = default(DateTime); this.TransferCancelAt = default(DateTime); this.TransferTransactionInfo = new TransferTransactionInfo(); }
public override void SetAll(System.Collections.Generic.IDictionary<string,object> values) { object value; if (values == null) { InitStateFields(); return; } if (values.TryGetValue("Version", out value)) Version = (UInt64) value; if (values.TryGetValue("Status", out value)) Status = (TransactionStatus) value; if (values.TryGetValue("TransferOutPreparationConfirmed", out value)) TransferOutPreparationConfirmed = (Boolean) value; if (values.TryGetValue("TransferInPreparationConfirmed", out value)) TransferInPreparationConfirmed = (Boolean) value; if (values.TryGetValue("TransferOutConfirmed", out value)) TransferOutConfirmed = (Boolean) value; if (values.TryGetValue("TransferInConfirmed", out value)) TransferInConfirmed = (Boolean) value; if (values.TryGetValue("AccountValidatedAt", out value)) AccountValidatedAt = (DateTime) value; if (values.TryGetValue("TransferOutPreparationConfirmedAt", out value)) TransferOutPreparationConfirmedAt = (DateTime) value; if (values.TryGetValue("TransferInPreparationConfirmedAt", out value)) TransferInPreparationConfirmedAt = (DateTime) value; if (values.TryGetValue("TransferOutConfirmedAt", out value)) TransferOutConfirmedAt = (DateTime) value; if (values.TryGetValue("TransferInConfirmedAt", out value)) TransferInConfirmedAt = (DateTime) value; if (values.TryGetValue("TransferCancelAt", out value)) TransferCancelAt = (DateTime) value; if (values.TryGetValue("TransferTransactionInfo", out value)) TransferTransactionInfo = (TransferTransactionInfo) value; }