apolloconfig/apollo.net

Apollo OpenApi 超时问题

XiaodengziBoy opened this issue · 1 comments

 var factory= new OpenApiFactory(new OpenApiOptions
            {
                PortalUrl = new Uri("http://172.168.4.57:8070/"),//apollo地址
                Token = "34b8f3d38e579607811103419f2"//刚申请的token值
            });
            IAppClusterClient appClusterClient= factory.CreateAppClusterClient("public-database");
            var d1 = appClusterClient.GetAppsInfo().Result;

            var d2 = appClusterClient.GetNamespaces("DEV").GetAwaiter().GetResult();

The request was canceled due to the configured HttpClient.Timeout of 5 seconds elapsing.

在请求时可能数量过大导致超时请问nuGet包怎么设置超时时间

var factory= new OpenApiFactory(new OpenApiOptions
{
PortalUrl = new Uri("http://172.168.4.57:8070/"),//apollo地址
Token = "34b8f3d38e5796078a5f4578887f0188603419f2",//刚申请的token值
Timeout=500060100
});