Files
yes.blog/Yes.Infrastructure/Authorizations/Identity/Context/IIdentityContext.cs
2025-04-30 09:51:36 +08:00

19 lines
307 B
C#

namespace Yes.Infrastructure.Authorizations.Identity.Context
{
public interface IIdentityContext : IScoped
{
int Id { get; }
string Name { get; }
IdentityRoleEnum Role { get; }
bool IsAuthenticated();
IEnumerable<Claim> GetClaimsIdentity();
}
}