public D0SimpleStreamParser(ILogManager logManager, IHexDumpLogger hexDump, ID0Transport reader, CancellationToken token, bool initialSync = false) { _initialSync = initialSync; _hexDump = hexDump; _reader = reader; _token = token; _logger = logManager.GetLogger(nameof(D0SimpleStreamParser)); InitializeFields(); }
public DaemonService(ILoggerFactory loggerFactory, IOptions <DaemonConfig> options, IConfiguration config, IHostApplicationLifetime hostApplicationLifetime) { loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); _options = options ?? throw new ArgumentNullException(nameof(options)); _config = config; _hostApplicationLifetime = hostApplicationLifetime; _logger = loggerFactory.CreateLogger <DaemonService>(); _logManager = new LoggingExtensionsLogManager(loggerFactory); _hexLogger = new HexDumpLogger(new LoggingExtensionsLogger(_logger)); }