Class ServerInformationService
Default implementation of IServerInformationService.
Inheritance
object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class ServerInformationService : IServerInformationService
Constructors
View SourceServerInformationService(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 SourceGetServerInformation()
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. |