print server with new concept

This commit is contained in:
EugeneTes
2026-01-16 12:00:24 +01:00
parent 147265358f
commit 5229cac987
30 changed files with 694 additions and 217 deletions

View File

@@ -34,14 +34,8 @@ public class PrintLoop
while (!_cancellationSource!.Token.IsCancellationRequested)
{
var job = await _jobSource.GetNextJobAsync(_cancellationToken);
var assigned = _assignedPrinterRepository.GetAssignedPrinter(job.AreaId);
if (assigned == null)
{
_logger.LogWarning("Received print job for unassigned area {AreaId}, skipping", job.AreaId);
continue;
}
_printServer.SubmitJob(assigned, job);
_printServer.SubmitJob(job.IP, job);
}
}