[FIX] EventConsole batch fix
This commit is contained in:
parent
5250b9f3f9
commit
79ea2badf1
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue