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

            HttpSettings.Proxy = proxy;
            Authent            = new YadWebAuth(HttpSettings, creds);
        }
Exemple #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));
        }