/// <summary> /// DI Constructor /// </summary> /// <param name="pmCommunicator">The communicator service</param> /// <param name="pmPollingService">The polling service</param> /// <param name="logger">The logger</param> public PMService(IPMCommunicator pmCommunicator, ICommandListFactory commandListFactory, IPMPollingService pmPollingService, ILogger <PMService> logger) { _logger = logger; _pmCommunicator = pmCommunicator; _commandListFactory = commandListFactory; _pmPollingService = pmPollingService; _pmCommunicator.DeviceLost += OnDeviceLost; }
/// <summary> /// DI Constructor /// </summary> /// <param name="pmCommunicator">The PM Communicator</param> /// <param name="commandListFactory">The command list factory</param> /// <param name="logger">The logger</param> public PMPollingService(IPMCommunicator pmCommunicator, ICommandListFactory commandListFactory, ILogger <PMPollingService> logger) { _logger = logger; _pmCommunicator = pmCommunicator; _commandListFactory = commandListFactory; }