public async Task Fish() { var result = await DoCommand(async() => { var playerId = _account.PlayerId; var command = new FishCommand(playerId); await _bus.SendCommand(command); }); }
public async Task <Unit> Handle(FishCommand command, CancellationToken cancellationToken) { await BeginChangeStatus(new PlayerStatusModel { PlayerId = command.PlayerId, Status = PlayerStatusEnum.钓鱼 }); return(Unit.Value); }