View Source
Class CoreRuntime
Defines the Umbraco runtime.
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CoreRuntime : IRuntime
Constructors
View Source
CoreRuntime(ILoggerFactory, IRuntimeState, ComponentCollection, IApplicationShutdownRegistry, IProfilingLogger, IMainDom, IUmbracoDatabaseFactory, IEventAggregator, IHostingEnvironment, IUmbracoVersion)
Declaration
public CoreRuntime(ILoggerFactory loggerFactory, IRuntimeState state, ComponentCollection components, IApplicationShutdownRegistry applicationShutdownRegistry, IProfilingLogger profilingLogger, IMainDom mainDom, IUmbracoDatabaseFactory databaseFactory, IEventAggregator eventAggregator, IHostingEnvironment hostingEnvironment, IUmbracoVersion umbracoVersion)
Parameters
View Source
CoreRuntime(ILoggerFactory, IRuntimeState, ComponentCollection, IApplicationShutdownRegistry, IProfilingLogger, IMainDom, IUmbracoDatabaseFactory, IEventAggregator, IHostingEnvironment, IUmbracoVersion, Nullable<IServiceProvider>)
Declaration
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
View Source
CoreRuntime(IRuntimeState, ILoggerFactory, ComponentCollection, IApplicationShutdownRegistry, IProfilingLogger, IMainDom, IUmbracoDatabaseFactory, IEventAggregator, IHostingEnvironment, IUmbracoVersion, Nullable<IServiceProvider>, Nullable<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
Properties
View Source
State
Gets the state of the Umbraco runtime.
Declaration
public IRuntimeState State { get; }
Property Value
Methods
View Source
RestartAsync()
Declaration
public async Task RestartAsync()
Returns
View Source
StartAsync(CancellationToken)
Declaration
public async Task StartAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
View Source
StopAsync(CancellationToken)
Declaration
public async Task StopAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns