public async Task <ActionResult> Roll(RollDiceRequest request) { var msg = new SendCommand(new GameId(request.GameId), new RollDice(new PlayerId(request.PlayerId))); var feedback = await _gameManagerActor.Ask <object>(msg); return(Ok(new { Result = feedback.GetType().Name })); }
public async Task <ActionResult> Roll(RollDiceRequest request) { //Send a SendCommand command containing a RollDice GameCommand to the GameManagerActor return(Ok(new { Result = feedback.GetType().Name })); }
public RollDiceResponse Post(RollDiceRequest request) { return UseCase.Execute(request); }