Interface IApplicationContext
Interface that represents the common context of the entire application.
Namespace: Fibula.Common.Contracts.Abstractions
Assembly: Fibula.Common.Contracts.dll
Syntax
public interface IApplicationContext
Properties
| Improve this Doc View SourceCancellationTokenSource
Gets the master cancellation token source.
Declaration
CancellationTokenSource CancellationTokenSource { get; }
Property Value
Type | Description |
---|---|
System.Threading.CancellationTokenSource |
DefaultDatabaseContext
Gets the default database context to use.
Declaration
IFibulaDbContext DefaultDatabaseContext { get; }
Property Value
Type | Description |
---|---|
IFibulaDbContext |
Options
Gets the options for the application.
Declaration
ApplicationContextOptions Options { get; }
Property Value
Type | Description |
---|---|
ApplicationContextOptions |
RsaDecryptor
Gets the RSA decryptor to use.
Declaration
IRsaDecryptor RsaDecryptor { get; }
Property Value
Type | Description |
---|---|
IRsaDecryptor |
TelemetryClient
Gets the Telemetry client in use.
Declaration
TelemetryClient TelemetryClient { get; }
Property Value
Type | Description |
---|---|
Microsoft.ApplicationInsights.TelemetryClient |
Methods
| Improve this Doc View SourceCreateNewUnitOfWork()
Creates a new IUnitOfWork<TAccountsRepository, TCharactersRepository, TMonsterTypesRepository, TItemTypesRepository> for data access.
Declaration
IUnitOfWork<IRepository<IAccountEntity>, IRepository<ICharacterEntity>, IReadOnlyRepository<IMonsterTypeEntity>, IReadOnlyRepository<IItemTypeEntity>> CreateNewUnitOfWork()
Returns
Type | Description |
---|---|
IUnitOfWork<IRepository<IAccountEntity>, IRepository<ICharacterEntity>, IReadOnlyRepository<IMonsterTypeEntity>, IReadOnlyRepository<IItemTypeEntity>> | The instance created. |