public SageCommandProcessor(ILifetimeScope lifetimeScope, TunerElement tunerSettings, DeviceElement deviceSettings, ICaptureManager executableProcessCaptureManager, IChannelProvider channelProvider, Logger logger) { _lifetimeScope = lifetimeScope; _tunerSettings = tunerSettings; _deviceSettings = deviceSettings; _executableProcessCapture = executableProcessCaptureManager; _channelProvider = channelProvider; Logger = logger; _tunerState = new TunerState(); _tunerState.Name = _tunerSettings.Name; }
public ExecutableProcessCaptureManager(CaptureProfileElement captureProfile, TunerElement tuner) { _captureProfile = captureProfile; _tuner = tuner; var startCommand = GetStartCommand(captureProfile); Logger = LogManager.GetLogger(tuner.Name + ":" + _captureProfile.Name); _executableName = Path.GetFileNameWithoutExtension(startCommand.Path); Logger.Debug("PathToExecutable={0}", startCommand.Path); Logger.Debug("CommandLineFormat={0}", startCommand.CommandLineFormat); LookForExistingProcessForThisTuner(startCommand.Path); }