示例#1
0
        public async Task <ActionResult <BetDto> > MakeBet(MakeBetCommand command)
        {
            var responce = await Mediator.Send(command);

            await _hubContext.Clients.All.SendAsync("jackpotAmountChanged", $"Jackpot amount has increased: {await Mediator.Send(new JackpotQuery())}");

            return(responce);
        }
 public async Task <BetRow> MakeBet(MakeBetCommand command)
 {
     command.IpAddress = _accessor.HttpContext?.Connection?.RemoteIpAddress?.ToString();
     return(await _commandBus.ExecuteAsync(command));
 }