示例#1
0
        public async Task <IReadOnlyList <GetServerListInfo> > GetServers(GetServerOptions options)
        {
            var optionList = options.GetFlagsName();
            var res        = await Client.Send("serverlist", null, optionList.ToArray()).ConfigureAwait(false);

            return(DataProxy.SerializeGeneric <GetServerListInfo>(res));
        }
示例#2
0
        private bool setupServerOptions()
        {
            var getServerOptionsCall = new GetServerOptions();

            if (!CallMethod(getServerOptionsCall, 5000) || getServerOptionsCall.HadFault)
            {
                return(false);
            }

            ServerOptions = getServerOptionsCall.ReturnValue;

            return(true);
        }