public YadWebRequestRepo(IWebProxy proxy, IBasicCredentials creds) { ServicePointManager.DefaultConnectionLimit = int.MaxValue; HttpSettings.Proxy = proxy; Authent = new YadWebAuth(HttpSettings, creds); }
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)); }