[FIX] EventConsole batch fix
This commit is contained in:
@@ -107,7 +107,7 @@ public partial class EventConsole : ComponentBase
|
||||
_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);
|
||||
}
|
||||
|
@@ -58,7 +58,7 @@ public abstract class ExtendedBackgroundService(string name, string description,
|
||||
if (State == ServiceState.Running)
|
||||
{
|
||||
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;
|
||||
_resumeSignal.TrySetResult();
|
||||
logger.LogInformation("Resumed service: {ServiceName}", Name);
|
||||
LogEvent("Service resumed.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user