Search Results for

    Show / Hide Table of Contents
    View Source

    Class CoreRuntime

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Runtime
    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?)

    Initializes a new instance of the CoreRuntime class, which manages the core runtime lifecycle and services for Umbraco.

    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

    The current runtime state of the Umbraco application.

    ILoggerFactory loggerFactory

    The factory used to create logger instances for diagnostic and operational logging.

    ComponentCollection components

    The collection of components to be managed by the runtime.

    IApplicationShutdownRegistry applicationShutdownRegistry

    The registry used to track and manage application shutdown events.

    IProfilingLogger profilingLogger

    The logger used for profiling and performance diagnostics.

    IMainDom mainDom

    The MainDom instance responsible for ensuring a single active Umbraco process.

    IUmbracoDatabaseFactory databaseFactory

    The factory for creating and managing Umbraco database connections.

    IEventAggregator eventAggregator

    The event aggregator for publishing and subscribing to application events.

    IHostingEnvironment hostingEnvironment

    The hosting environment abstraction for accessing environment-specific information.

    IUmbracoVersion umbracoVersion

    The current version information for the Umbraco application.

    IServiceProvider serviceProvider

    The service provider for resolving application services.

    IHostApplicationLifetime hostApplicationLifetime

    The interface for managing application lifetime events, such as startup and shutdown.

    Properties

    View Source

    State

    Gets the state of the Umbraco runtime.

    Declaration
    public IRuntimeState State { get; }
    Property Value
    Type Description
    IRuntimeState

    Methods

    View Source

    RestartAsync()

    Stops and Starts the runtime using the original cancellation token.

    Declaration
    public Task RestartAsync()
    Returns
    Type Description
    Task
    View Source

    StartAsync(CancellationToken)

    Declaration
    public Task StartAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    View Source

    StopAsync(CancellationToken)

    Declaration
    public Task StopAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX