10 instantiations of Cookie
Client.ClientBase.IntegrationTests (1)
ClientBaseTests.4.1.0.cs (1)
35
cookieManager.CookieContainer.Add(new Uri(Endpoints.HttpBaseAddress_Basic_Text), new System.Net.
Cookie
(cookieName, cookieValue));
System.Net.HttpListener (4)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (4)
605
cookie = new
Cookie
();
778
cookie ??= new
Cookie
();
824
_savedCookie = new
Cookie
();
833
_savedCookie = new
Cookie
();
System.Net.Primitives (5)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (4)
605
cookie = new
Cookie
();
778
cookie ??= new
Cookie
();
824
_savedCookie = new
Cookie
();
833
_savedCookie = new
Cookie
();
System\Net\Cookie.cs (1)
277
Cookie clonedCookie = new
Cookie
(m_name, m_value);
97 references to Cookie
Client.ClientBase.IntegrationTests (1)
ClientBaseTests.4.1.0.cs (1)
89
Cookie
cookie = cookies[cookieName];
netstandard (1)
netstandard.cs (1)
1073
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
Cookie
))]
System (1)
src\runtime\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\runtime\src\libraries\Common\src\System\Net\CookieComparer.cs (2)
8
internal static bool Equals(
Cookie
left,
Cookie
right)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (12)
513
private
Cookie
? _savedCookie;
527
private static Func<
Cookie
, string?, bool>? s_internalSetNameMethod;
528
private static Func<
Cookie
, string?, bool> InternalSetNameMethod
538
MethodInfo? method = typeof(
Cookie
).GetMethod("InternalSetName", BindingFlags.Instance | BindingFlags.NonPublic);
540
s_internalSetNameMethod = (Func<
Cookie
, string?, bool>)Delegate.CreateDelegate(typeof(Func<
Cookie
, string?, bool>), method);
556
FieldInfo? fieldInfo = typeof(
Cookie
).GetField("IsQuotedDomain", BindingFlags.Instance | BindingFlags.NonPublic);
573
FieldInfo? fieldInfo = typeof(
Cookie
).GetField("IsQuotedVersion", BindingFlags.Instance | BindingFlags.NonPublic);
585
internal
Cookie
? Get()
587
Cookie
? cookie = null;
761
internal
Cookie
? GetServer()
763
Cookie
? cookie = _savedCookie;
System\Net\HttpListenerRequest.cs (1)
35
Cookie
? cookie = parser.GetServer();
System\Net\HttpListenerResponse.cs (4)
185
public void AppendCookie(
Cookie
cookie)
203
Cookie
cookie = _cookies[index];
250
public void SetCookie(
Cookie
cookie)
254
Cookie
newCookie = cookie.Clone();
System\Net\Windows\CookieExtensions.cs (23)
13
private static Func<
Cookie
, string>? s_toServerStringFunc;
15
public static string ToServerString(this
Cookie
cookie)
17
s_toServerStringFunc ??= (Func<
Cookie
, string>)typeof(
Cookie
).GetMethod("ToServerString", BindingFlags.Instance | BindingFlags.NonPublic)?.CreateDelegate(typeof(Func<
Cookie
, string>))!;
22
private static Func<
Cookie
,
Cookie
>? s_cloneFunc;
24
public static
Cookie
Clone(this
Cookie
cookie)
26
s_cloneFunc ??= (Func<
Cookie
,
Cookie
>)typeof(
Cookie
).GetMethod("Clone", BindingFlags.Instance | BindingFlags.NonPublic)?.CreateDelegate(typeof(Func<
Cookie
,
Cookie
>))!;
40
private static Func<
Cookie
, CookieVariant>? s_getVariantFunc;
42
public static bool IsRfc2965Variant(this
Cookie
cookie)
44
s_getVariantFunc ??= (Func<
Cookie
, CookieVariant>)typeof(
Cookie
).GetProperty("Variant", BindingFlags.Instance | BindingFlags.NonPublic)?.GetGetMethod(true)?.CreateDelegate(typeof(Func<
Cookie
, CookieVariant>))!;
52
private static Func<CookieCollection,
Cookie
, bool, int>? s_internalAddFunc;
54
public static int InternalAdd(this CookieCollection cookieCollection,
Cookie
cookie, bool isStrict)
56
s_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\runtime\src\libraries\Common\src\System\Net\CookieComparer.cs (2)
8
internal static bool Equals(
Cookie
left,
Cookie
right)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (8)
513
private
Cookie
? _savedCookie;
522
private static bool InternalSetNameMethod(
Cookie
cookie, string? value)
556
FieldInfo? fieldInfo = typeof(
Cookie
).GetField("IsQuotedDomain", BindingFlags.Instance | BindingFlags.NonPublic);
573
FieldInfo? fieldInfo = typeof(
Cookie
).GetField("IsQuotedVersion", BindingFlags.Instance | BindingFlags.NonPublic);
585
internal
Cookie
? Get()
587
Cookie
? cookie = null;
761
internal
Cookie
? GetServer()
763
Cookie
? cookie = _savedCookie;
System\Net\Cookie.cs (3)
275
internal
Cookie
Clone()
277
Cookie
clonedCookie = new Cookie(m_name, m_value);
625
return comparand is
Cookie
other
System\Net\CookieCollection.cs (20)
15
public class CookieCollection : ICollection<
Cookie
>, IReadOnlyCollection<
Cookie
>, ICollection
35
public
Cookie
this[int index]
42
return (m_list[index] as
Cookie
)!;
46
public
Cookie
? this[string name]
50
foreach (
Cookie
? c in m_list)
67
public void Add(
Cookie
cookie)
86
foreach (
Cookie
? cookie in cookies.m_list)
97
public bool Contains(
Cookie
cookie)
102
public bool Remove(
Cookie
cookie)
150
public void CopyTo(
Cookie
[] array, int index)
191
internal int InternalAdd(
Cookie
cookie, bool isStrict)
200
Cookie
c = (
Cookie
)m_list[i]!;
223
if (cookie.Version !=
Cookie
.MaxSupportedVersion)
230
internal int IndexOf(
Cookie
cookie)
233
foreach (
Cookie
? c in m_list)
249
IEnumerator<
Cookie
> IEnumerable<
Cookie
>.GetEnumerator()
251
foreach (
Cookie
? cookie in m_list)
System\Net\CookieContainer.cs (18)
181
public void Add(
Cookie
cookie)
223
Cookie
new_cookie = cookie.Clone();
231
internal void InternalAdd(
Cookie
cookie)
524
Cookie
cookie = cc[idx];
539
foreach (
Cookie
c in (ICollection<
Cookie
>)cookies)
545
public void Add(Uri uri,
Cookie
cookie)
550
Cookie
new_cookie = cookie.Clone();
561
foreach (
Cookie
c in cookies)
563
Cookie
new_cookie = c.Clone();
595
Cookie
? cookie = parser.Get();
633
InternalAdd((
Cookie
)cookies[i]);
646
/// <summary>Gets a <see cref="CookieCollection"/> that contains all of the <see cref="
Cookie
"/> instances in the container.</summary>
647
/// <returns>A <see cref="CookieCollection"/> that contains all of the <see cref="
Cookie
"/> instances in the container.</returns>
772
Cookie
cookie = source[idx];
853
(
Cookie
.SpecialAttributeLiteral +
855
Cookie
.EqualsLiteral +
856
Cookie
.MaxSupportedVersionString) : string.Empty;