13 instantiations of Cookie
Client.ClientBase.IntegrationTests (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (1)
System.Net.HttpListener (4)
System.Net.Primitives (5)
97 references to Cookie
Client.ClientBase.IntegrationTests (1)
netstandard (1)
System (1)
System.Net (1)
System.Net.HttpListener (42)
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\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)