SSPC-Tester/SSPCTester.UI/Services/AppLog.cs
2026-06-30 12:10:29 +08:00

11 lines
355 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace SSPCTester.UI.Services;
/// <summary>
/// 全局日志接收器静态访问点(仅供 XAML 绑定使用,应用其余地方一律 DI 注入 UiLogSink
/// </summary>
public static class AppLog
{
private static UiLogSink? _sink;
public static UiLogSink Sink => _sink ??= (UiLogSink)App.Services.GetService(typeof(UiLogSink))!;
}