Class CoreRuntime
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class CoreRuntime : IRuntime
Constructors
CoreRuntime(ILoggerFactory, IRuntimeState, ComponentCollection, IApplicationShutdownRegistry, IProfilingLogger, IMainDom, IUmbracoDatabaseFactory, IEventAggregator, IHostingEnvironment, IUmbracoVersion)
Declaration
[Obsolete]
public CoreRuntime(ILoggerFactory loggerFactory, IRuntimeState state, ComponentCollection components, IApplicationShutdownRegistry applicationShutdownRegistry, IProfilingLogger profilingLogger, IMainDom mainDom, IUmbracoDatabaseFactory databaseFactory, IEventAggregator eventAggregator, IHostingEnvironment hostingEnvironment, IUmbracoVersion umbracoVersion)
Parameters
Type |
Name |
Description |
ILoggerFactory |
loggerFactory |
|
IRuntimeState |
state |
|
ComponentCollection |
components |
|
IApplicationShutdownRegistry |
applicationShutdownRegistry |
|
IProfilingLogger |
profilingLogger |
|
IMainDom |
mainDom |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
IEventAggregator |
eventAggregator |
|
IHostingEnvironment |
hostingEnvironment |
|
IUmbracoVersion |
umbracoVersion |
|
CoreRuntime(ILoggerFactory, IRuntimeState, ComponentCollection, IApplicationShutdownRegistry, IProfilingLogger, IMainDom, IUmbracoDatabaseFactory, IEventAggregator, IHostingEnvironment, IUmbracoVersion, IServiceProvider)
Declaration
[Obsolete]
public CoreRuntime(ILoggerFactory loggerFactory, IRuntimeState state, ComponentCollection components, IApplicationShutdownRegistry applicationShutdownRegistry, IProfilingLogger profilingLogger, IMainDom mainDom, IUmbracoDatabaseFactory databaseFactory, IEventAggregator eventAggregator, IHostingEnvironment hostingEnvironment, IUmbracoVersion umbracoVersion, IServiceProvider serviceProvider)
Parameters
Type |
Name |
Description |
ILoggerFactory |
loggerFactory |
|
IRuntimeState |
state |
|
ComponentCollection |
components |
|
IApplicationShutdownRegistry |
applicationShutdownRegistry |
|
IProfilingLogger |
profilingLogger |
|
IMainDom |
mainDom |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
IEventAggregator |
eventAggregator |
|
IHostingEnvironment |
hostingEnvironment |
|
IUmbracoVersion |
umbracoVersion |
|
System.IServiceProvider |
serviceProvider |
|
CoreRuntime(IRuntimeState, ILoggerFactory, ComponentCollection, IApplicationShutdownRegistry, IProfilingLogger, IMainDom, IUmbracoDatabaseFactory, IEventAggregator, IHostingEnvironment, IUmbracoVersion, IServiceProvider, IHostApplicationLifetime)
Declaration
public CoreRuntime(IRuntimeState state, ILoggerFactory loggerFactory, ComponentCollection components, IApplicationShutdownRegistry applicationShutdownRegistry, IProfilingLogger profilingLogger, IMainDom mainDom, IUmbracoDatabaseFactory databaseFactory, IEventAggregator eventAggregator, IHostingEnvironment hostingEnvironment, IUmbracoVersion umbracoVersion, IServiceProvider serviceProvider, IHostApplicationLifetime hostApplicationLifetime)
Parameters
Type |
Name |
Description |
IRuntimeState |
state |
|
ILoggerFactory |
loggerFactory |
|
ComponentCollection |
components |
|
IApplicationShutdownRegistry |
applicationShutdownRegistry |
|
IProfilingLogger |
profilingLogger |
|
IMainDom |
mainDom |
|
IUmbracoDatabaseFactory |
databaseFactory |
|
IEventAggregator |
eventAggregator |
|
IHostingEnvironment |
hostingEnvironment |
|
IUmbracoVersion |
umbracoVersion |
|
System.IServiceProvider |
serviceProvider |
|
IHostApplicationLifetime |
hostApplicationLifetime |
|
Properties
State
Gets the state of the Umbraco runtime.
Declaration
public IRuntimeState State { get; }
Property Value
Type |
Description |
IRuntimeState |
|
Methods
RestartAsync()
Declaration
public async Task RestartAsync()
Returns
StartAsync(CancellationToken)
Declaration
public async Task StartAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
StopAsync(CancellationToken)
Declaration
public async Task StopAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns