View Source
Class CoreRuntime
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CoreRuntime : IRuntime
Constructors
View Source
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
Properties
View Source
State
Gets the state of the Umbraco runtime.
Declaration
public IRuntimeState State { get; }
Property Value
Methods
View Source
RestartAsync()
Stops and Starts the runtime using the original cancellation token.
Declaration
public Task RestartAsync()
Returns
View Source
StartAsync(CancellationToken)
Declaration
public Task StartAsync(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| CancellationToken |
cancellationToken |
|
Returns
View Source
StopAsync(CancellationToken)
Declaration
public Task StopAsync(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| CancellationToken |
cancellationToken |
|
Returns