Class RuntimeState
Represents the state of the Umbraco runtime.
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class RuntimeState : IRuntimeState
Constructors
RuntimeState(IOptions<GlobalSettings>, IOptions<UnattendedSettings>, IUmbracoVersion, IUmbracoDatabaseFactory, ILogger<RuntimeState>, PendingPackageMigrations)
Declaration
[Obsolete("use ctor with all params")]
public RuntimeState(IOptions<GlobalSettings> globalSettings, IOptions<UnattendedSettings> unattendedSettings, IUmbracoVersion umbracoVersion, IUmbracoDatabaseFactory databaseFactory, ILogger<RuntimeState> logger, PendingPackageMigrations packageMigrationState)
Parameters
Type |
Name |
Description |
IOptions<GlobalSettings> |
globalSettings |
|
IOptions<UnattendedSettings> |
unattendedSettings |
|
IUmbracoVersion |
umbracoVersion |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
ILogger<RuntimeState> |
logger |
|
PendingPackageMigrations |
packageMigrationState |
|
RuntimeState(IOptions<GlobalSettings>, IOptions<UnattendedSettings>, IUmbracoVersion, IUmbracoDatabaseFactory, ILogger<RuntimeState>, PendingPackageMigrations, IConflictingRouteService)
Declaration
public RuntimeState(IOptions<GlobalSettings> globalSettings, IOptions<UnattendedSettings> unattendedSettings, IUmbracoVersion umbracoVersion, IUmbracoDatabaseFactory databaseFactory, ILogger<RuntimeState> logger, PendingPackageMigrations packageMigrationState, IConflictingRouteService conflictingRouteService)
Parameters
Type |
Name |
Description |
IOptions<GlobalSettings> |
globalSettings |
|
IOptions<UnattendedSettings> |
unattendedSettings |
|
IUmbracoVersion |
umbracoVersion |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
ILogger<RuntimeState> |
logger |
|
PendingPackageMigrations |
packageMigrationState |
|
IConflictingRouteService |
conflictingRouteService |
|
Properties
BootFailedException
Declaration
public BootFailedException BootFailedException { get; }
Property Value
Type |
Description |
BootFailedException |
|
CurrentMigrationState
Declaration
public string CurrentMigrationState { get; }
Property Value
Type |
Description |
System.String |
|
FinalMigrationState
Declaration
public string FinalMigrationState { get; }
Property Value
Type |
Description |
System.String |
|
Level
Declaration
public RuntimeLevel Level { get; }
Property Value
Type |
Description |
RuntimeLevel |
|
Reason
Declaration
public RuntimeLevelReason Reason { get; }
Property Value
Type |
Description |
RuntimeLevelReason |
|
SemanticVersion
Declaration
public SemVersion SemanticVersion { get; }
Property Value
Type |
Description |
SemVersion |
|
StartupState
Declaration
public IReadOnlyDictionary<string, object> StartupState { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> |
|
Version
Declaration
public Version Version { get; }
Property Value
Type |
Description |
System.Version |
|
Declaration
public string VersionComment { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Booting()
Declaration
public static RuntimeState Booting()
Returns
Declaration
public void Configure(RuntimeLevel level, RuntimeLevelReason reason, Exception bootFailedException = null)
Parameters
Type |
Name |
Description |
RuntimeLevel |
level |
|
RuntimeLevelReason |
reason |
|
System.Exception |
bootFailedException |
|
DetermineRuntimeLevel()
Declaration
public void DetermineRuntimeLevel()