print server with new concept
This commit is contained in:
18
Inspectron.Epson/PrintServer/Printers/EpsonPrinterFactory.cs
Normal file
18
Inspectron.Epson/PrintServer/Printers/EpsonPrinterFactory.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Inspectron.Epson.PrintServer.Printers;
|
||||
|
||||
public class EpsonPrinterFactory:IPrinterFactory
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public EpsonPrinterFactory(ILogger logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public IEpsonPrinter CreatePrinter()
|
||||
{
|
||||
return new EpsonPrinter(_logger);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user