Class CoreRuntime
Represents the Core Umbraco runtime.
Inheritance
System.Object
Namespace: Umbraco.Core.Runtime
Assembly: Umbraco.Core.dll
Syntax
public class CoreRuntime : IRuntime
Remarks
Does not handle any of the web-related aspects of Umbraco (startup, etc). It should be possible to use this runtime in console apps.
Constructors
View SourceCoreRuntime()
Declaration
[Obsolete("Use the ctor with all parameters instead")]
public CoreRuntime()
CoreRuntime(ILogger, IMainDom)
Declaration
public CoreRuntime(ILogger logger, IMainDom mainDom)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | |
IMainDom | mainDom |
Properties
View SourceLogger
Gets the logger.
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
MainDom
Declaration
public IMainDom MainDom { get; }
Property Value
Type | Description |
---|---|
IMainDom |
Profiler
Gets the profiler.
Declaration
protected IProfiler Profiler { get; }
Property Value
Type | Description |
---|---|
IProfiler |
ProfilingLogger
Gets the profiling logger.
Declaration
protected IProfilingLogger ProfilingLogger { get; }
Property Value
Type | Description |
---|---|
IProfilingLogger |
State
Gets the runtime state.
Declaration
public IRuntimeState State { get; }
Property Value
Type | Description |
---|---|
IRuntimeState |
Methods
View SourceBoot(IRegister)
Boots the runtime.
Declaration
public virtual IFactory Boot(IRegister register)
Parameters
Type | Name | Description |
---|---|---|
IRegister | register | The application register. |
Returns
Type | Description |
---|---|
IFactory | The application factory. |
Boot(IRegister, DisposableTimer)
Boots the runtime within a timer.
Declaration
protected virtual IFactory Boot(IRegister register, DisposableTimer timer)
Parameters
Type | Name | Description |
---|---|---|
IRegister | register | |
DisposableTimer | timer |
Returns
Type | Description |
---|---|
IFactory |
Compose(Composition)
Composes the runtime.
Declaration
public virtual void Compose(Composition composition)
Parameters
Type | Name | Description |
---|---|---|
Composition | composition |
ConfigureApplicationRootPath()
Declaration
protected virtual void ConfigureApplicationRootPath()
ConfigureUnhandledException()
Declaration
protected virtual void ConfigureUnhandledException()
GetAppCaches()
Gets the application caches.
Declaration
protected virtual AppCaches GetAppCaches()
Returns
Type | Description |
---|---|
AppCaches |
GetApplicationRootPath()
Declaration
protected virtual string GetApplicationRootPath()
Returns
Type | Description |
---|---|
System.String |
GetComposerTypes(TypeLoader)
Gets all composer types.
Declaration
protected virtual IEnumerable<Type> GetComposerTypes(TypeLoader typeLoader)
Parameters
Type | Name | Description |
---|---|---|
TypeLoader | typeLoader |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Type> |
GetConfigs()
Gets the configurations.
Declaration
protected virtual Configs GetConfigs()
Returns
Type | Description |
---|---|
Configs |
GetDatabaseFactory()
Gets the database factory.
Declaration
protected virtual IUmbracoDatabaseFactory GetDatabaseFactory()
Returns
Type | Description |
---|---|
IUmbracoDatabaseFactory |
Remarks
This is strictly internal, for tests only.
GetLogger()
Declaration
[Obsolete("Don't use this method, the logger should be injected into the CoreRuntime")]
protected virtual ILogger GetLogger()
Returns
Type | Description |
---|---|
ILogger |
GetProfiler()
Gets a profiler.
Declaration
protected virtual IProfiler GetProfiler()
Returns
Type | Description |
---|---|
IProfiler |
Terminate()
Terminates the runtime.
Declaration
public virtual void Terminate()
Events
View SourceUnattendedInstalled
Event to be used to notify when the Unattended Install has finished
Declaration
public static event TypedEventHandler<IRuntime, UnattendedInstallEventArgs> UnattendedInstalled
Event Type
Type | Description |
---|---|
TypedEventHandler<IRuntime, UnattendedInstallEventArgs> |