public YadWebRequestRepo(IWebProxy proxy, IBasicCredentials creds)
        {
            ServicePointManager.DefaultConnectionLimit = int.MaxValue;

            HttpSettings.Proxy = proxy;
            Authent            = new YadWebAuth(HttpSettings, creds);
        }
예제 #2
0
        public YadWebRequestRepo(IWebProxy proxy, IBasicCredentials creds)
        {
            ServicePointManager.DefaultConnectionLimit = int.MaxValue;

            HttpSettings.Proxy = proxy;
            Authent            = new YadWebAuth(HttpSettings, creds);

            CachedSharedList = new Cached <Dictionary <string, IEnumerable <PublicLinkInfo> > >(old =>
            {
                var res = GetShareListInner().Result;
                return(res);
            },
                                                                                                value => TimeSpan.FromSeconds(30));
        }