public AccountDebitedEvent(Guid id, long version, DebitType debitType, decimal sum) { Id = version; DebitType = debitType; Sum = sum; AggrateId = id; }
/// <remarks/> public void DebitOtherCostsAsync(string Username, string Password, double FeeAmount, DebitType TypeOfDebit, OptionalParameters[] OptionalParam, object userState) { if ((this.DebitOtherCostsOperationCompleted == null)) { this.DebitOtherCostsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDebitOtherCostsOperationCompleted); } this.InvokeAsync("DebitOtherCosts", new object[] { Username, Password, FeeAmount, TypeOfDebit, OptionalParam}, this.DebitOtherCostsOperationCompleted, userState); }
/// <remarks/> public void DebitOtherCostsAsync(string Username, string Password, double FeeAmount, DebitType TypeOfDebit, OptionalParameters[] OptionalParam) { this.DebitOtherCostsAsync(Username, Password, FeeAmount, TypeOfDebit, OptionalParam, null); }
public eMessageResult DebitOtherCosts(string Username, string Password, double FeeAmount, DebitType TypeOfDebit, OptionalParameters[] OptionalParam) { object[] results = this.Invoke("DebitOtherCosts", new object[] { Username, Password, FeeAmount, TypeOfDebit, OptionalParam}); return ((eMessageResult)(results[0])); }
public void Debit(DebitType debitType, decimal sum) { Balance -= sum; _version++; UnCommitedEvents.Add(new AccountDebitedEvent(Id, _version, debitType, sum)); }