Class RuntimeState
Represents the state of the Umbraco runtime.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.Runtime
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RuntimeState : IRuntimeState
Constructors
View SourceRuntimeState(IOptions<GlobalSettings>, IOptions<UnattendedSettings>, IUmbracoVersion, IUmbracoDatabaseFactory, ILogger<RuntimeState>, PendingPackageMigrations, IConflictingRouteService, IEnumerable<IDatabaseProviderMetadata>, IRuntimeModeValidationService)
Initializes a new instance of the Runtime
Declaration
public RuntimeState(IOptions<GlobalSettings> globalSettings, IOptions<UnattendedSettings> unattendedSettings, IUmbracoVersion umbracoVersion, IUmbracoDatabaseFactory databaseFactory, ILogger<RuntimeState> logger, PendingPackageMigrations packageMigrationState, IConflictingRouteService conflictingRouteService, IEnumerable<IDatabaseProviderMetadata> databaseProviderMetadata, IRuntimeModeValidationService runtimeModeValidationService)
Parameters
Type | Name | Description |
---|---|---|
IOptions<Global |
globalSettings | |
IOptions<Unattended |
unattendedSettings | |
IUmbraco |
umbracoVersion | |
IUmbraco |
databaseFactory | |
ILogger<Runtime |
logger | |
Pending |
packageMigrationState | |
IConflicting |
conflictingRouteService | |
IEnumerable<IDatabase |
databaseProviderMetadata | |
IRuntime |
runtimeModeValidationService |
Properties
View SourceBootFailedException
Gets the exception that caused the boot to fail.
Declaration
public BootFailedException BootFailedException { get; }
Property Value
Type | Description |
---|---|
Boot |
CurrentMigrationState
Gets the current migration state.
Declaration
public string CurrentMigrationState { get; }
Property Value
Type | Description |
---|---|
System. |
FinalMigrationState
Gets the final migration state.
Declaration
public string FinalMigrationState { get; }
Property Value
Type | Description |
---|---|
System. |
Level
Gets the runtime level of execution.
Declaration
public RuntimeLevel Level { get; }
Property Value
Type | Description |
---|---|
Runtime |
Reason
Gets the reason for the runtime level of execution.
Declaration
public RuntimeLevelReason Reason { get; }
Property Value
Type | Description |
---|---|
Runtime |
SemanticVersion
Gets the semantic version of the executing code.
Declaration
public SemVersion SemanticVersion { get; }
Property Value
Type | Description |
---|---|
Sem |
StartupState
Declaration
public IReadOnlyDictionary<string, object> StartupState { get; }
Property Value
Type | Description |
---|---|
IRead |
Version
Declaration
public Version Version { get; }
Property Value
Type | Description |
---|---|
Version |
VersionComment
Gets the version comment of the executing code.
Declaration
public string VersionComment { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceBooting()
The initial Runtime
Declaration
public static RuntimeState Booting()
Returns
Type | Description |
---|---|
Runtime |
Configure(RuntimeLevel, RuntimeLevelReason, Nullable<Exception>)
Declaration
public void Configure(RuntimeLevel level, RuntimeLevelReason reason, Exception? bootFailedException = null)
Parameters
Type | Name | Description |
---|---|---|
Runtime |
level | |
Runtime |
reason | |
System. |
bootFailedException |
DetermineRuntimeLevel()
Determines the runtime level.
Declaration
public void DetermineRuntimeLevel()