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())); }
public override Task <Game> GetState(EmptyMessage request, ServerCallContext context) { AIClient client = Clients[context.RequestHeaders[0].Value]; return(Task.FromResult(client.GetState())); }