web configuration
This commit is contained in:
@@ -7,6 +7,5 @@ public class EpsonPrintServiceConfiguration
|
||||
public string RestaurantId { get; set; }
|
||||
public string ApiKey { get; set; }
|
||||
public string? ApiUrl { get; set; }
|
||||
|
||||
|
||||
public bool EmulationMode { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Inspectron.Epson.PrintServer.Printers;
|
||||
|
||||
public class EmulationPrinterFactory : IPrinterFactory
|
||||
{
|
||||
private readonly Dictionary<string, (string OutputPath, byte PrinterId, int PaperWidth)> _printerConfigs;
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public EmulationPrinterFactory(
|
||||
Dictionary<string, (string OutputPath, byte PrinterId, int PaperWidth)> printerConfigs,
|
||||
ILogger logger)
|
||||
{
|
||||
_printerConfigs = printerConfigs;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public IEpsonPrinter CreatePrinter()
|
||||
{
|
||||
return new EmulationPrinterProxy(_printerConfigs, _logger);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user