public Task TransferIn(decimal amount, string uid) { var accountBalanceChangeEventData = new AccountBalanceChangeEventData { Diff = +amount }; var dataEvent = this.CreateEvent(accountBalanceChangeEventData); return(Claptrap.HandleEventAsync(dataEvent)); }
public async Task <decimal> TransferInAsync(decimal amount) { var accountBalanceChangeEventData = new AccountBalanceChangeEventData { Diff = +amount }; var dataEvent = this.CreateEvent(accountBalanceChangeEventData); await Claptrap.HandleEventAsync(dataEvent); var re = await GetBalanceAsync(); return(re); }