public PersistentStandardAuthenticationProvider(ICookieStorage storage, Uri url) { if (storage == null) { throw new ArgumentNullException("storage"); } if (url == null) { throw new ArgumentNullException("url"); } this.storage = storage; this.url = url; if (storage.Cookies != null) { foreach (Cookie c in storage.Cookies) { this.Cookies.Add(c); } } }