Beispiel #1
0
        public async Task Fish()
        {
            var result = await DoCommand(async() => {
                var playerId = _account.PlayerId;

                var command = new FishCommand(playerId);
                await _bus.SendCommand(command);
            });
        }
Beispiel #2
0
        public async Task <Unit> Handle(FishCommand command, CancellationToken cancellationToken)
        {
            await BeginChangeStatus(new PlayerStatusModel
            {
                PlayerId = command.PlayerId,
                Status   = PlayerStatusEnum.钓鱼
            });

            return(Unit.Value);
        }