From 75f57f53f2fe820076964849d6ad1411f1e14ef1 Mon Sep 17 00:00:00 2001 From: Yu Leng Date: Thu, 11 Dec 2025 10:28:44 +0800 Subject: [PATCH] Simplify ProfileService XML doc comments Removed the section from the ProfileService class XML documentation, eliminating detailed design notes and usage guidelines. Only the summary description is now retained for clarity and brevity. --- .../PowerDisplay.Lib/Services/ProfileService.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/modules/powerdisplay/PowerDisplay.Lib/Services/ProfileService.cs b/src/modules/powerdisplay/PowerDisplay.Lib/Services/ProfileService.cs index b49aa50a0a..09b9712d9d 100644 --- a/src/modules/powerdisplay/PowerDisplay.Lib/Services/ProfileService.cs +++ b/src/modules/powerdisplay/PowerDisplay.Lib/Services/ProfileService.cs @@ -17,20 +17,6 @@ namespace PowerDisplay.Common.Services /// Provides unified access to profile data for PowerDisplay, Settings UI, and LightSwitch modules. /// Thread-safe and AOT-compatible. /// - /// - /// Design Note: This class provides both static and instance-based access patterns: - /// - /// Static methods: Direct access for backward compatibility with existing code. Thread-safe with internal locking. - /// Instance methods (via ): For dependency injection consumers. Delegates to static methods internally. - /// - /// Usage Guidelines: - /// - /// New code should prefer DI: serviceProvider.GetService<IProfileService>() - /// Or use the singleton: ProfileService.Instance.LoadProfiles() - /// Static methods remain available for backward compatibility - /// - /// All access patterns are thread-safe and share the same underlying lock. - /// public class ProfileService : IProfileService { private const string LogPrefix = "[ProfileService]";