Files
SharepointToolbox-Web/Services/Session/IUserContextAccessor.cs
T
2026-06-02 10:56:03 +02:00

17 lines
439 B
C#

using SharepointToolbox.Web.Core.Models;
namespace SharepointToolbox.Web.Services.Session;
/// <summary>Scoped per Blazor circuit. Set once on circuit init from auth state.</summary>
public interface IUserContextAccessor
{
string Email { get; }
string DisplayName { get; }
UserRole Role { get; }
bool IsAuthenticated { get; }
event Action? Initialized;
void Initialize(AppUser user);
}