Compare commits

..

1 Commits

Author SHA1 Message Date
max
79ea2badf1 [FIX] EventConsole batch fix 2025-09-18 02:10:13 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ public partial class EventConsole : ComponentBase
_batchLock.Release(); _batchLock.Release();
} }
foreach (var serviceEvent in _batchBuffer.Where(serviceEvent => !_serviceEvents.Contains(serviceEvent))) foreach (var serviceEvent in batch.Where(serviceEvent => !_serviceEvents.Contains(serviceEvent)))
{ {
_serviceEvents.Add(serviceEvent); _serviceEvents.Add(serviceEvent);
} }

View File

@@ -58,7 +58,7 @@ public abstract class ExtendedBackgroundService(string name, string description,
if (State == ServiceState.Running) if (State == ServiceState.Running)
{ {
State = ServiceState.Paused; State = ServiceState.Paused;
logger.LogInformation("Pauses service: {ServiceName}", Name); LogEvent("Service paused.");
} }
} }
@@ -68,7 +68,7 @@ public abstract class ExtendedBackgroundService(string name, string description,
{ {
State = ServiceState.Running; State = ServiceState.Running;
_resumeSignal.TrySetResult(); _resumeSignal.TrySetResult();
logger.LogInformation("Resumed service: {ServiceName}", Name); LogEvent("Service resumed.");
} }
} }