Add project files.

This commit is contained in:
EugeneTes
2026-01-13 09:06:47 +01:00
parent dd935fe1fa
commit 7390693f50
187 changed files with 83457 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using System.Threading.Channels;
namespace Inspectron.Epson.PrintServer.JobSources;
public class SingleJobSource: IPrintJobSource
{
public SingleJobSource(PrintJob job)
{
_channel.Writer.WriteAsync(job);
}
private Channel<PrintJob> _channel = Channel.CreateUnbounded<PrintJob>();
public async Task<PrintJob> GetNextJobAsync(CancellationToken cancellationToken)
{
return await _channel.Reader.ReadAsync(cancellationToken);
}
}