示例#1
0
        public ValueTask <BoolResponse> AddWorldServer(AddWorldServerRequest request)
        {
            var server = request.Server;
            var added  = serverManager.AddWorldServer(new WorldServer
            {
                Host = server.Host,
                Port = server.Port,
                Name = server.Name
            });

            return(ValueTask.FromResult(new BoolResponse
            {
                Value = added
            }));
        }