Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user