Search Results for

    Show / Hide Table of Contents
    View Source

    Class ServerInformationService

    Default implementation of IServerInformationService.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class ServerInformationService : IServerInformationService

    Constructors

    View Source

    ServerInformationService(IUmbracoVersion, TimeProvider, IOptionsMonitor<RuntimeSettings>)

    Initializes a new instance of the ServerInformationService class.

    Declaration
    public ServerInformationService(IUmbracoVersion umbracoVersion, TimeProvider timeProvider, IOptionsMonitor<RuntimeSettings> runtimeSettingsOptionsMonitor)
    Parameters
    Type Name Description
    IUmbracoVersion umbracoVersion

    The Umbraco version provider.

    TimeProvider timeProvider

    The time provider for timezone information.

    IOptionsMonitor<RuntimeSettings> runtimeSettingsOptionsMonitor

    The runtime settings monitor.

    Methods

    View Source

    GetServerInformation()

    Gets information about the server including version, timezone, and runtime mode.

    Declaration
    public ServerInformation GetServerInformation()
    Returns
    Type Description
    ServerInformation

    A ServerInformation object containing the server details.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX