4 instantiations of CookieSameSite
Microsoft.AspNetCore.Components.Platform (4)
CookieSameSite.cs (4)
37public static CookieSameSite Strict { get; } = new(DefaultValue); 42public static CookieSameSite Lax { get; } = new("lax"); 47public static CookieSameSite None { get; } = new("none"); 90static 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"/>. 46public CookieSameSite SameSite { get; set; } = CookieSameSite.Strict;
CookieSameSite.cs (16)
15[JsonConverter(typeof(WebIdlEnumJsonConverter<CookieSameSite>))] 16public readonly struct CookieSameSite : IEquatable<CookieSameSite>, IWebIdlEnum<CookieSameSite> 24/// Initializes a new instance of <see cref="CookieSameSite"/> with the specified string. 37public static CookieSameSite Strict { get; } = new(DefaultValue); 42public static CookieSameSite Lax { get; } = new("lax"); 47public static CookieSameSite None { get; } = new("none"); 59public 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> 66public override bool Equals(object? obj) => obj is CookieSameSite other && Equals(other); 80public static bool operator ==(CookieSameSite left, CookieSameSite right) => left.Equals(right); 88public static bool operator !=(CookieSameSite left, CookieSameSite right) => !left.Equals(right); 90static CookieSameSite IWebIdlEnum<CookieSameSite>.Create(string value) => new(value);