20 lines
599 B
C#
20 lines
599 B
C#
using SharepointToolbox.Web.Core.Models;
|
|
|
|
namespace SharepointToolbox.Web.Services.Session;
|
|
|
|
/// <summary>
|
|
/// Scoped per Blazor circuit. Holds the active tenant profile for the current user.
|
|
/// All feature pages read the profile from here instead of asking the user per-request.
|
|
/// </summary>
|
|
public interface IUserSessionService
|
|
{
|
|
TenantProfile? CurrentProfile { get; }
|
|
bool HasProfile { get; }
|
|
AppSettings Settings { get; }
|
|
|
|
void SetProfile(TenantProfile profile);
|
|
Task ClearSessionAsync();
|
|
void UpdateSettings(AppSettings settings);
|
|
event Action? ProfileChanged;
|
|
}
|