Interface IRuntimeState
Represents the state of the Umbraco runtime.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IRuntimeStateProperties
View SourceBootFailedException
Gets the exception that caused the boot to fail.
Declaration
BootFailedException BootFailedException { get; }Property Value
| Type | Description | 
|---|---|
| BootFailedException | 
CurrentMigrationState
Gets the current migration state.
Declaration
string CurrentMigrationState { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
FinalMigrationState
Gets the final migration state.
Declaration
string FinalMigrationState { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Level
Gets the runtime level of execution.
Declaration
RuntimeLevel Level { get; }Property Value
| Type | Description | 
|---|---|
| RuntimeLevel | 
Reason
Gets the reason for the runtime level of execution.
Declaration
RuntimeLevelReason Reason { get; }Property Value
| Type | Description | 
|---|---|
| RuntimeLevelReason | 
SemanticVersion
Gets the semantic version of the executing code.
Declaration
SemVersion SemanticVersion { get; }Property Value
| Type | Description | 
|---|---|
| SemVersion | 
StartupState
Returns any state data that was collected during startup
Declaration
IReadOnlyDictionary<string, object> StartupState { get; }Property Value
| Type | Description | 
|---|---|
| IReadOnlyDictionary<System.String, System.Object> | 
Version
Gets the version of the executing code.
Declaration
Version Version { get; }Property Value
| Type | Description | 
|---|---|
| Version | 
VersionComment
Gets the version comment of the executing code.
Declaration
string VersionComment { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
View SourceConfigure(RuntimeLevel, RuntimeLevelReason, Nullable<Exception>)
Declaration
void Configure(RuntimeLevel level, RuntimeLevelReason reason, Exception? bootFailedException = null)Parameters
| Type | Name | Description | 
|---|---|---|
| RuntimeLevel | level | |
| RuntimeLevelReason | reason | |
| System.Nullable<Exception> | bootFailedException | 
DetermineRuntimeLevel()
Determines the runtime level.
Declaration
void DetermineRuntimeLevel()