public void Handle(DepositedEvent @event) { this.Balance += @event.Amount; }
public Task Apply(DepositedEvent evt) { //this.logger.LogError($"加款:{evt.Amount}; 余额:{evt.Balance}"); return(Task.CompletedTask); }