Definition at line 517 of file CookieContainer.cs.
518 {
519 if (NetEventSource.Log.IsEnabled())
520 {
521 NetEventSource.Info(
this,
$"uri:{uri} headerName:{headerName} setCookieHeader:{setCookieHeader} isThrow:{isThrow}",
"CookieCutter");
522 }
524 CookieVariant
variant = CookieVariant.Unknown;
526 {
527 variant = CookieVariant.Rfc2109;
528 }
529 else
530 {
532 {
534 {
536 }
537 }
538 }
540 try
541 {
543 while (true)
544 {
546 if (NetEventSource.Log.IsEnabled())
547 {
548 NetEventSource.Info(
this,
$"CookieParser returned cookie:{cookie}",
"CookieCutter");
549 }
551 {
553 {
554 break;
555 }
556 }
557 else if (
string.IsNullOrEmpty(
cookie.Name))
558 {
560 {
562 }
563 }
565 {
567 }
568 }
569 }
570 catch (OutOfMemoryException)
571 {
572 throw;
573 }
574 catch (Exception inner)
575 {
577 {
579 }
580 }
583 {
585 }
587 }
bool IsLocalDomain(string host)
static readonly HeaderVariantInfo[] s_headerInfo
readonly string m_fqdnMyDomain
static string Format(string resourceFormat, object p1)
static string net_cookie_parse_header
static string net_cookie_format
References System.Uri.AbsoluteUri, System.Add, System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Net.Equals, System.SR.Format(), System.Uri.Host, System.Net.NetEventSource.Info(), System.Net.CookieContainer.IsLocalDomain(), System.Net.NetEventSource.Log, System.Net.CookieContainer.m_fqdnMyDomain, System.Name, System.SR.net_cookie_format, System.SR.net_cookie_parse_header, and System.Net.CookieContainer.s_headerInfo.
Referenced by System.Net.CookieContainer.SetCookies().