fallback support

This commit is contained in:
EugeneTes
2026-02-05 09:31:38 +01:00
parent 08da2c1e3e
commit f0ae32c9e5
8 changed files with 165 additions and 721 deletions

View File

@@ -34,7 +34,7 @@ public class SignalRPrintJobSource: IPrintJobSource
_connection.Reconnected += OnReconnected;
_connection.Closed += OnClosed;
_ = InitializeConnectionAsync();
}
private async Task InitializeConnectionAsync()
@@ -106,6 +106,11 @@ public class SignalRPrintJobSource: IPrintJobSource
});
}
public Task StartAsync()
{
return InitializeConnectionAsync();
}
public async Task<PrintJob> GetNextJobAsync(CancellationToken cancellationToken)
{
return await _printJobChannel.Reader.ReadAsync(cancellationToken);