From f8aad322ccabcc377b522e3abb375dd67476f375 Mon Sep 17 00:00:00 2001 From: mbastian77 Date: Wed, 15 Jul 2026 11:58:29 +0200 Subject: Add XML docs to DeviceId and remove CS1591 suppression --- Emby.Server.Implementations/Devices/DeviceId.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Emby.Server.Implementations/Devices/DeviceId.cs b/Emby.Server.Implementations/Devices/DeviceId.cs index 0b3c3bbd4f..4929568935 100644 --- a/Emby.Server.Implementations/Devices/DeviceId.cs +++ b/Emby.Server.Implementations/Devices/DeviceId.cs @@ -1,5 +1,3 @@ -#pragma warning disable CS1591 - using System; using System.Globalization; using System.IO; @@ -10,6 +8,9 @@ using Microsoft.Extensions.Logging; namespace Emby.Server.Implementations.Devices { + /// + /// Provides the persistent unique identifier of this server installation. + /// public class DeviceId { private readonly IApplicationPaths _appPaths; @@ -18,12 +19,20 @@ namespace Emby.Server.Implementations.Devices private string? _id; + /// + /// Initializes a new instance of the class. + /// + /// Instance of the interface. + /// Instance of the interface. public DeviceId(IApplicationPaths appPaths, ILogger logger) { _appPaths = appPaths; _logger = logger; } + /// + /// Gets the device id, loading it from disk or generating and persisting a new one if none exists. + /// public string Value => _id ??= GetDeviceId(); private string CachePath => Path.Combine(_appPaths.DataPath, "device.txt"); -- cgit v1.2.3