예제 #1
0
        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 }));
        }
예제 #2
0
        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 }));
        }
예제 #3
0
		public RollDiceResponse Post(RollDiceRequest request)
		{
			return UseCase.Execute(request);
		}