This commit is contained in:
@@ -46,9 +46,9 @@ namespace AyaNova.Util
|
||||
{
|
||||
log.LogTrace("RenderSlotAvailable check");
|
||||
//var count = _baginstances.Count;
|
||||
#if (DEBUG)
|
||||
log.LogInformation($"DBG: RenderSlotAvailable check, there are currently {_baginstances.Count} instances in the bag");
|
||||
#endif
|
||||
// #if (DEBUG)
|
||||
// log.LogInformation($"DBG: RenderSlotAvailable check, there are currently {_baginstances.Count} instances in the bag");
|
||||
// #endif
|
||||
if (_baginstances.Count >= ServerBootConfig.AYANOVA_REPORT_RENDERING_MAX_INSTANCES)
|
||||
{
|
||||
log.LogTrace($"RenderSlotAvailable there are no free report rendering slots available, current count is {_baginstances.Count}, checking for expired slots to force closed");
|
||||
@@ -59,9 +59,9 @@ namespace AyaNova.Util
|
||||
{
|
||||
if (i.Expires < dtNow)
|
||||
{
|
||||
#if (DEBUG)
|
||||
log.LogInformation($"DBG: RenderSlotAvailable attempting kill of expired process {i.ReporterProcessId}");
|
||||
#endif
|
||||
// #if (DEBUG)
|
||||
// log.LogInformation($"DBG: RenderSlotAvailable attempting kill of expired process {i.ReporterProcessId}");
|
||||
// #endif
|
||||
ForceCloseProcess(i, log);
|
||||
}
|
||||
}
|
||||
@@ -107,21 +107,21 @@ namespace AyaNova.Util
|
||||
|
||||
internal static void AddProcess(int processId, ILogger log)
|
||||
{
|
||||
#if (DEBUG)
|
||||
log.LogInformation($"DBG: RenderSlotAvailable::AddProcess {processId} in the bag");
|
||||
#endif
|
||||
// #if (DEBUG)
|
||||
// log.LogInformation($"DBG: RenderSlotAvailable::AddProcess {processId} in the bag");
|
||||
// #endif
|
||||
_baginstances.Add(new ReportRenderInstanceInfo(processId));
|
||||
|
||||
#if (DEBUG)
|
||||
log.LogInformation($"DBG: RenderSlotAvailable::AddProcess, there are currently {_baginstances.Count} instances in the bag");
|
||||
#endif
|
||||
// #if (DEBUG)
|
||||
// log.LogInformation($"DBG: RenderSlotAvailable::AddProcess, there are currently {_baginstances.Count} instances in the bag");
|
||||
// #endif
|
||||
}
|
||||
|
||||
internal static void RemoveProcess(int processId, ILogger log)
|
||||
{
|
||||
#if (DEBUG)
|
||||
log.LogInformation($"DBG: RenderSlotAvailable::RemoveProcess {processId} from the bag");
|
||||
#endif
|
||||
// #if (DEBUG)
|
||||
// log.LogInformation($"DBG: RenderSlotAvailable::RemoveProcess {processId} from the bag");
|
||||
// #endif
|
||||
foreach (var i in _baginstances)
|
||||
{
|
||||
if (i.ReporterProcessId == processId)
|
||||
|
||||
Reference in New Issue
Block a user