/// <summary>
        /// 查询服务发现服务列表
        /// </summary>
        /// <returns></returns>
        public async Task <QueryServiceListOutput> QueryServiceList()
        {
            var list = await _serviceDiscovery.FindAllServicesAsync();

            return(new QueryServiceListOutput {
                Data = list
            });
        }
        /// <summary>
        /// 查询服务发现服务列表
        /// </summary>
        /// <returns></returns>
        public async Task <QueryServiceListOutput> QueryServiceList(QueryServiceListInput input)
        {
            var result = new object();

            if (input.State == 0)
            {
                result = await _serviceDiscovery.FindAllServicesAsync();
            }
            if (input.State == 1)
            {
                if (string.IsNullOrWhiteSpace(input.Name))
                {
                    result = await _serviceDiscovery.FindServiceInstancesAsync();
                }
                else
                {
                    result = await _serviceDiscovery.FindServiceInstancesAsync(input.Name);
                }
            }
            return(new QueryServiceListOutput {
                Data = result
            });
        }