Пример #1
0
 internal CookieGetter(CookieStatus status)
 {
     if (status == null) {
         throw new ArgumentNullException("status");
     }
     _cookieStatus = status;
 }
        public ICookieGetter CreateDefaultCookieGetter()
        {
            string path = Utility.ReplacePathSymbols(GetCookiePath());

            if (!System.IO.File.Exists(path)) {
                path = null;
            }

            CookieStatus status = new CookieStatus(this.BrowserType.ToString(), path, this.BrowserType, PathType.File);
            return new GoogleChrome3CookieGetter(status);
        }
 public GoogleChrome3CookieGetter(CookieStatus status)
     : base(status)
 {
 }
Пример #4
0
 public WebkitCookieGetter(CookieStatus status)
     : base(status)
 {
 }
Пример #5
0
 public IECookieGetter(CookieStatus status, bool checkSubDirectory)
     : base(status)
 {
     this._checkSubDirectory = true;
 }
Пример #6
0
 public SqlCookieGetter(CookieStatus status)
     : base(status)
 {
 }
Пример #7
0
        /// <summary>
        /// CookieStatusからCookieGetterを復元する
        /// </summary>
        /// <param name="status"></param>
        /// <returns></returns>
        public static ICookieGetter CreateInstance(CookieStatus status)
        {
            ICookieGetter cookieGetter = CreateInstance(status.BrowserType);
            cookieGetter.Status.Name = status.Name;
            cookieGetter.Status.CookiePath = status.CookiePath;
            cookieGetter.Status.DisplayName = status.DisplayName;

            return cookieGetter;
        }