DotBased/DotBased.ASP.Auth/Domains/Auth/AuthenticationStateModel.cs

16 lines
484 B
C#
Raw Normal View History

2024-07-07 17:41:54 +02:00
namespace DotBased.ASP.Auth.Domains.Auth;
public class AuthenticationStateModel
{
2024-09-27 02:38:18 +02:00
public string Id { get; set; } = string.Empty;
public override bool Equals(object? obj)
{
if (obj is AuthenticationStateModel authStateModel)
return authStateModel.Id == Id;
return false;
}
// ReSharper disable once NonReadonlyMemberInGetHashCode
public override int GetHashCode() => Id.GetHashCode();
public override string ToString() => Id;
2024-07-07 17:41:54 +02:00
}