Files
LogViewerControl/CSharp/Controls/LogViewer.Avalonia/Logging/LogDataStore.cs
T

14 lines
367 B
C#
Raw Normal View History

2026-04-04 13:30:13 +02:00
using Avalonia.Threading;
2026-04-05 10:13:12 +02:00
using Serilog.Sinks.LogView.Core.Logging;
2026-04-04 13:30:13 +02:00
namespace LogViewer.Avalonia.Logging;
2026-04-05 10:13:12 +02:00
public class LogDataStore : Serilog.Sinks.LogView.Core.Logging.LogDataStore
2026-04-04 13:30:13 +02:00
{
#region Methods
2026-04-05 10:13:12 +02:00
public override async void AddEntry(LogModel logModel)
2026-04-04 13:30:13 +02:00
=> await Dispatcher.UIThread.InvokeAsync(() => base.AddEntry(logModel));
#endregion
}