//代理分红 public Task <AsyncTaskResult> HandleAsync(NewBalanceLogEvent evnt) { return(_commandService.SendAsync(CreatedNotificationCommand( evnt.AggregateRootId, "代理已分红", NotificationType.PartnerBalance, evnt.AggregateRootId, true))); }
public Task <AsyncTaskResult> HandleAsync(NewBalanceLogEvent evnt) { return(TryInsertRecordAsync(connection => { var info = evnt.LogInfo; return connection.InsertAsync(new { Id = GuidUtil.NewSequentialId(), PartnerId = evnt.AggregateRootId, WalletId = info.WalletId, Region = info.Region, Amount = info.Amount, BalanceAmount = info.BalanceAmount, CashAmount = info.CashAmount, BenevolenceAmount = info.BenevolenceAmount, CreatedOn = evnt.Timestamp }, ConfigSettings.PartnerBalanceLogTable); })); }
private void Handle(NewBalanceLogEvent evnt) { }