Related Models: AdminSettings.cs
Related Interfaces:
IAdminSettingsService.cs
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Handles logic related to the AdminSettings model & the configuration of app-wide settings.
IAdminSettingsService.cs
| Field Name | Type | Description |
|---|---|---|
_dbContextFactory | IDbContextFactory<NumaContext> | DbContextFactory for instantiating instances of NumaContext on-demand |
public AdminSettingsService( IDbContextFactory<NumaContext> dbContextFactory )
{
_dbContextFactory = dbContextFactory ?? throw new ArgumentNullException( nameof( dbContextFactory ) );
}
| Property Name | Type | Description |
|---|---|---|
CurrentAdminSettings | AdminSettings? | Object to represent the state of the current admin settings |
| Method Name | Description | Parameters | Return Type |
|---|---|---|---|
InitializeCurrentAdminSettingsAsync | Sets CurrentAdminSettings to the admin settings stored in Cosmos DB | Task | |
SaveCurrentAdminSettingsAsync | Saves changes to the admin settings in Cosmos DB | Task |
using Numa.Models;
namespace Numa.Interfaces
{
public interface IAdminSettingsService
{
AdminSettings? CurrentAdminSettings { get; }
Task InitializeCurrentAdminSettingsAsync();
Task SaveCurrentAdminSettingsAsync();
}
}
