Files
Umbraco-CMS/src/Umbraco.Core/Models/ServerInformation.cs
Nikolaj Geisle fc71724386 V14: Server information (#15497)
* Rename information endpoint to troubleshooting

* Rename information endpoint to troubleshooting

* Add new information endpoint

* Fix bad merge

* Add InformationServerController.cs back

* Update serverTime offset to non hard-coded value.

* Add dictionary to swagger models

* Update OpenApi.json file

* Rename map definition

* Add ServerConfigurationBaseModel

* Implement ServerConfigurationBaseModel.cs

* Updated OpenApi

* Updated endpoint to return correct type in openapi

* Use explicit class for server information

* Remove version endpoint, as that is contained in server information.

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2023-12-22 10:21:11 +01:00

12 lines
400 B
C#

using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.Semver;
namespace Umbraco.Cms.Core.Models;
public class ServerInformation(SemVersion semVersion, TimeZoneInfo timeZoneInfo, RuntimeMode runtimeMode)
{
public SemVersion SemVersion { get; } = semVersion;
public TimeZoneInfo TimeZoneInfo { get; } = timeZoneInfo;
public RuntimeMode RuntimeMode { get; } = runtimeMode;
}