4 instantiations of CookieSameSite
Microsoft.AspNetCore.Components.Platform (4)
CookieSameSite.cs (4)
37
public static CookieSameSite Strict { get; } =
new
(DefaultValue);
42
public static CookieSameSite Lax { get; } =
new
("lax");
47
public static CookieSameSite None { get; } =
new
("none");
90
static CookieSameSite IWebIdlEnum<CookieSameSite>.Create(string value) =>
new
(value);
19 references to CookieSameSite
Microsoft.AspNetCore.Components.Platform (19)
CookieInit.cs (3)
44
/// Gets or sets the SameSite attribute of the cookie. The default is <see cref="
CookieSameSite
.Strict"/>.
46
public
CookieSameSite
SameSite { get; set; } =
CookieSameSite
.Strict;
CookieSameSite.cs (16)
15
[JsonConverter(typeof(WebIdlEnumJsonConverter<
CookieSameSite
>))]
16
public readonly struct CookieSameSite : IEquatable<
CookieSameSite
>, IWebIdlEnum<
CookieSameSite
>
24
/// Initializes a new instance of <see cref="
CookieSameSite
"/> with the specified string.
37
public static
CookieSameSite
Strict { get; } = new(DefaultValue);
42
public static
CookieSameSite
Lax { get; } = new("lax");
47
public static
CookieSameSite
None { get; } = new("none");
59
public bool Equals(
CookieSameSite
other) => _value == other._value;
65
/// <returns><see langword="true"/> if <paramref name="obj"/> is a <see cref="
CookieSameSite
"/> with the same string; otherwise, <see langword="false"/>.</returns>
66
public override bool Equals(object? obj) => obj is
CookieSameSite
other && Equals(other);
80
public static bool operator ==(
CookieSameSite
left,
CookieSameSite
right) => left.Equals(right);
88
public static bool operator !=(
CookieSameSite
left,
CookieSameSite
right) => !left.Equals(right);
90
static
CookieSameSite
IWebIdlEnum<
CookieSameSite
>.Create(string value) => new(value);