Interface IRuntimeState
Represents the state of the Umbraco runtime.
Namespace: Umbraco.Core
Assembly: Umbraco.Core.dll
Syntax
public interface IRuntimeState
Properties
View SourceApplicationUrl
Gets the Umbraco application URL.
Declaration
Uri ApplicationUrl { get; }
Property Value
Type | Description |
---|---|
System.Uri |
Remarks
This is eg "http://www.example.com".
ApplicationVirtualPath
Gets the Umbraco application virtual path.
Declaration
string ApplicationVirtualPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This is either "/" or eg "/virtual".
BootFailedException
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 |
Debug
Gets a value indicating whether the application is running in debug mode.
Declaration
bool Debug { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
FinalMigrationState
Gets the final migration state.
Declaration
string FinalMigrationState { get; }
Property Value
Type | Description |
---|---|
System.String |
IsMainDom
Gets a value indicating whether the runtime is the current main domain.
Declaration
bool IsMainDom { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
ServerRole
Get the server's current role.
Declaration
ServerRole ServerRole { get; }
Property Value
Type | Description |
---|---|
ServerRole |
Version
Gets the version of the executing code.
Declaration
Version Version { get; }
Property Value
Type | Description |
---|---|
System.Version |
VersionComment
Gets the version comment of the executing code.
Declaration
string VersionComment { get; }
Property Value
Type | Description |
---|---|
System.String |