13 instantiations of Cookie
Client.ClientBase.IntegrationTests (1)
ClientBaseTests.4.1.0.cs (1)
35cookieManager.CookieContainer.Add(new Uri(Endpoints.HttpBaseAddress_Basic_Text), new System.Net.Cookie(cookieName, cookieValue));
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
1715cookieJar.Add(new System.Net.Cookie("Foo", "Bar", "/", new Uri(server.Url).Host));
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.cs (1)
93httpOptions.Cookies.Add(new Cookie("Name", "Value", string.Empty, "fakeuri.org"));
Microsoft.AspNetCore.SignalR.Tests (1)
WebSocketsTransportTests.cs (1)
33httpOptions.Cookies.Add(new Cookie("Name", "Value", string.Empty, "fakeuri.org"));
System.Net.HttpListener (4)
src\libraries\Common\src\System\Net\CookieParser.cs (4)
605cookie = new Cookie(); 778cookie ??= new Cookie(); 824_savedCookie = new Cookie(); 833_savedCookie = new Cookie();
System.Net.Primitives (5)
src\libraries\Common\src\System\Net\CookieParser.cs (4)
605cookie = new Cookie(); 778cookie ??= new Cookie(); 824_savedCookie = new Cookie(); 833_savedCookie = new Cookie();
System\Net\Cookie.cs (1)
278Cookie clonedCookie = new Cookie(m_name, m_value);
97 references to Cookie
Client.ClientBase.IntegrationTests (1)
ClientBaseTests.4.1.0.cs (1)
88Cookie cookie = cookies[cookieName];
netstandard (1)
netstandard.cs (1)
1073[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Cookie))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
600[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Cookie))]
System.Net (1)
System.Net.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Cookie))]
System.Net.HttpListener (42)
src\libraries\Common\src\System\Net\CookieComparer.cs (2)
8internal static bool Equals(Cookie left, Cookie right)
src\libraries\Common\src\System\Net\CookieParser.cs (12)
513private Cookie? _savedCookie; 527private static Func<Cookie, string?, bool>? s_internalSetNameMethod; 528private static Func<Cookie, string?, bool> InternalSetNameMethod 538MethodInfo? method = typeof(Cookie).GetMethod("InternalSetName", BindingFlags.Instance | BindingFlags.NonPublic); 540s_internalSetNameMethod = (Func<Cookie, string?, bool>)Delegate.CreateDelegate(typeof(Func<Cookie, string?, bool>), method); 556FieldInfo? fieldInfo = typeof(Cookie).GetField("IsQuotedDomain", BindingFlags.Instance | BindingFlags.NonPublic); 573FieldInfo? fieldInfo = typeof(Cookie).GetField("IsQuotedVersion", BindingFlags.Instance | BindingFlags.NonPublic); 585internal Cookie? Get() 587Cookie? cookie = null; 761internal Cookie? GetServer() 763Cookie? cookie = _savedCookie;
System\Net\HttpListenerRequest.cs (1)
35Cookie? cookie = parser.GetServer();
System\Net\HttpListenerResponse.cs (4)
185public void AppendCookie(Cookie cookie) 203Cookie cookie = _cookies[index]; 250public void SetCookie(Cookie cookie) 254Cookie newCookie = cookie.Clone();
System\Net\Windows\CookieExtensions.cs (23)
13private static Func<Cookie, string>? s_toServerStringFunc; 15public static string ToServerString(this Cookie cookie) 17s_toServerStringFunc ??= (Func<Cookie, string>)typeof(Cookie).GetMethod("ToServerString", BindingFlags.Instance | BindingFlags.NonPublic)?.CreateDelegate(typeof(Func<Cookie, string>))!; 22private static Func<Cookie, Cookie>? s_cloneFunc; 24public static Cookie Clone(this Cookie cookie) 26s_cloneFunc ??= (Func<Cookie, Cookie>)typeof(Cookie).GetMethod("Clone", BindingFlags.Instance | BindingFlags.NonPublic)?.CreateDelegate(typeof(Func<Cookie, Cookie>))!; 40private static Func<Cookie, CookieVariant>? s_getVariantFunc; 42public static bool IsRfc2965Variant(this Cookie cookie) 44s_getVariantFunc ??= (Func<Cookie, CookieVariant>)typeof(Cookie).GetProperty("Variant", BindingFlags.Instance | BindingFlags.NonPublic)?.GetGetMethod(true)?.CreateDelegate(typeof(Func<Cookie, CookieVariant>))!; 52private static Func<CookieCollection, Cookie, bool, int>? s_internalAddFunc; 54public static int InternalAdd(this CookieCollection cookieCollection, Cookie cookie, bool isStrict) 56s_internalAddFunc ??= (Func<CookieCollection, Cookie, bool, int>)typeof(CookieCollection).GetMethod("InternalAdd", BindingFlags.Instance | BindingFlags.NonPublic)?.CreateDelegate(typeof(Func<CookieCollection, Cookie, bool, int>))!;
System.Net.Primitives (51)
src\libraries\Common\src\System\Net\CookieComparer.cs (2)
8internal static bool Equals(Cookie left, Cookie right)
src\libraries\Common\src\System\Net\CookieParser.cs (8)
513private Cookie? _savedCookie; 522private static bool InternalSetNameMethod(Cookie cookie, string? value) 556FieldInfo? fieldInfo = typeof(Cookie).GetField("IsQuotedDomain", BindingFlags.Instance | BindingFlags.NonPublic); 573FieldInfo? fieldInfo = typeof(Cookie).GetField("IsQuotedVersion", BindingFlags.Instance | BindingFlags.NonPublic); 585internal Cookie? Get() 587Cookie? cookie = null; 761internal Cookie? GetServer() 763Cookie? cookie = _savedCookie;
System\Net\Cookie.cs (3)
276internal Cookie Clone() 278Cookie clonedCookie = new Cookie(m_name, m_value); 702return comparand is Cookie other
System\Net\CookieCollection.cs (20)
15public class CookieCollection : ICollection<Cookie>, IReadOnlyCollection<Cookie>, ICollection 35public Cookie this[int index] 42return (m_list[index] as Cookie)!; 46public Cookie? this[string name] 50foreach (Cookie? c in m_list) 67public void Add(Cookie cookie) 86foreach (Cookie? cookie in cookies.m_list) 97public bool Contains(Cookie cookie) 102public bool Remove(Cookie cookie) 150public void CopyTo(Cookie[] array, int index) 191internal int InternalAdd(Cookie cookie, bool isStrict) 200Cookie c = (Cookie)m_list[i]!; 223if (cookie.Version != Cookie.MaxSupportedVersion) 230internal int IndexOf(Cookie cookie) 233foreach (Cookie? c in m_list) 249IEnumerator<Cookie> IEnumerable<Cookie>.GetEnumerator() 251foreach (Cookie? cookie in m_list)
System\Net\CookieContainer.cs (18)
212public void Add(Cookie cookie) 254Cookie new_cookie = cookie.Clone(); 262internal void Add(Cookie cookie, bool throwOnError) 562Cookie cookie = cc[idx]; 577foreach (Cookie c in (ICollection<Cookie>)cookies) 653public void Add(Uri uri, Cookie cookie) 658Cookie new_cookie = cookie.Clone(); 670foreach (Cookie c in cookies) 672Cookie new_cookie = c.Clone(); 705Cookie? cookie = parser.Get(); 754Add((Cookie)cookies[i], isThrow); 767/// <summary>Gets a <see cref="CookieCollection"/> that contains all of the <see cref="Cookie"/> instances in the container.</summary> 768/// <returns>A <see cref="CookieCollection"/> that contains all of the <see cref="Cookie"/> instances in the container.</returns> 934Cookie cookie = source[idx]; 1015(Cookie.SpecialAttributeLiteral + 1017Cookie.EqualsLiteral + 1018Cookie.MaxSupportedVersionString) : string.Empty;