public ProcessWatcher(NetworkHelper networkHelper, IRepository repository, ICaptureDeviceFactory captureDeviceDeviceFactory, ITimer watchJobTimer) { _networkHelper = networkHelper; _repository = repository; _watchJobTimer = watchJobTimer; _captureDevice = captureDeviceDeviceFactory.CreateInstance(NotSupportedCaptureDevice); _localHostIpV4 = GetIpV4OfLocalHost(); BuildProcessWatches(); }
public PcapLoader(ILoggerFactory loggerFactory, ICaptureDeviceFactory captureDeviceFactory) { this._captureDeviceFactory = captureDeviceFactory; this._logger = loggerFactory.CreateLogger <PcapLoader>(); }
private IProcessWatcher GivenProcessWatcher(NetworkHelper networkHelper, IRepository repository, ICaptureDeviceFactory captureDeviceFactory, ITimer jobTimer) { return(new ProcessWatcher(networkHelper, repository, captureDeviceFactory, jobTimer)); }