Пример #1
0
 protected virtual bool DoOnNewCookie(RFC2109Cookie ACookie) {
   bool TempResult = true;
   if (_OnNewCookie != null) {
     _OnNewCookie(this, ACookie, ref TempResult);
   }
   return TempResult;
 }
Пример #2
0
        protected void DoAdd(RFC2109Cookie ACookie, string ACookieText, string AHost)
        {
            string LDomain;

            ACookie.CookieText = ACookieText;
            if (ACookie.Domain.Length == 0)
            {
                LDomain = AHost;
            }
            else
            {
                LDomain = ACookie.Domain;
            }
            ACookie.Domain = LDomain;
            if (ACookie.IsValidCookie(AHost))
            {
                if (DoOnNewCookie(ACookie))
                {
                    _Cookies.AddCookie(ACookie);
                }
                else
                {
                    using (ACookie) {
                    }
                }
            }
            else
            {
                using (ACookie) {
                }
            }
        }
Пример #3
0
        protected virtual bool DoOnNewCookie(RFC2109Cookie ACookie)
        {
            bool TempResult = true;

            if (_OnNewCookie != null)
            {
                _OnNewCookie(this, ACookie, ref TempResult);
            }
            return(TempResult);
        }
Пример #4
0
 protected void DoAdd(RFC2109Cookie ACookie, string ACookieText, string AHost) {
   string LDomain;
   ACookie.CookieText = ACookieText;
   if (ACookie.Domain.Length == 0) {
     LDomain = AHost;
   } else {
     LDomain = ACookie.Domain;
   }
   ACookie.Domain = LDomain;
   if (ACookie.IsValidCookie(AHost)) {
     if (DoOnNewCookie(ACookie)) {
       _Cookies.AddCookie(ACookie);
     } else {
       using (ACookie) {
       }
     }
   } else {
     using (ACookie) {
     }
   }
 }