예제 #1
0
        public Task <StartGameReply> StartGame(ServerCallContext context, StartGameRequest request)
        {
            bool gameStarted = manager.StartGame();
            var  reply       = new StartGameReply.Builder {
                Result = gameStarted
            }.BuildPartial();

            return(Task.FromResult(reply));
        }
예제 #2
0
 public Task<StartGameReply> StartGame(ServerCallContext context, StartGameRequest request)
 {
     bool gameStarted = manager.StartGame();
     var reply = new StartGameReply.Builder { Result = gameStarted }.BuildPartial();
     return Task.FromResult(reply);
 }