public WorkTimeEventService(IWorkTimeUow uow, IWorkTimeEsRepository repository, IConfigurationService configurationService) { var settings = configurationService.Get <WorkTimeEventServiceSettings>("eventGathering"); _uow = uow; _repository = repository; _config = settings; MouseEventBufferSz = settings.MouseEventBufferSz; KeyboardEventBufferSz = settings.KeyboardEventBufferSz; _allKeyboardBuilder = new MouseKeyboardEventBuilder(_config.KeyboardEventWindowSz, _config.KeyboardEventMonitorWindowSz, string.Empty); _allMouseBuilder = new MouseKeyboardEventBuilder(_config.MouseEventWindowSz, _config.MouseEventMonitorWindowSz, string.Empty); }
public MKEventBuilders(WorkTimeEventServiceSettings config, string executable) { _config = config; MouseEventBuilder = new MouseKeyboardEventBuilder(_config.MouseEventWindowSz, _config.MouseEventMonitorWindowSz, executable); KeyboardEventBuilder = new MouseKeyboardEventBuilder(_config.KeyboardEventWindowSz, _config.KeyboardEventMonitorWindowSz, executable); }