CmisSync.Lib.Cmis.PersistentStandardAuthenticationProvider.PersistentStandardAuthenticationProvider C# (CSharp) Метод

PersistentStandardAuthenticationProvider() публичный Метод

Initializes a new instance of the CmisSync.Lib.Cmis.PersistentStandardAuthenticationProvider class.
public PersistentStandardAuthenticationProvider ( ICookieStorage storage, Uri url ) : System
storage ICookieStorage Storage of saved cookies
url System.Uri corresponding URL of the cookies
Результат System
        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);
                }
            }
        }