Esempio n. 1
0
        public override Task <SabberStonePython.API.Empty> Close(SabberStonePython.API.Empty request, ServerCallContext context)
        {
            Console.WriteLine("Closing......");

            Server.ShutdownAsync();
            return(Task.FromResult(new SabberStonePython.API.Empty()));
        }
Esempio n. 2
0
        public override Task <Game> GetState(EmptyMessage request, ServerCallContext context)
        {
            AIClient client = Clients[context.RequestHeaders[0].Value];

            return(Task.FromResult(client.GetState()));
        }