Exemple #1
0
        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 MouseKeyboardEventReducerServiceTest()
 {
     _service = new MouseKeyboardEventBuilder(60_000, 1000, "C:\\example\\example.exe");
 }
Exemple #3
0
 public MKEventBuilders(WorkTimeEventServiceSettings config, string executable)
 {
     _config              = config;
     MouseEventBuilder    = new MouseKeyboardEventBuilder(_config.MouseEventWindowSz, _config.MouseEventMonitorWindowSz, executable);
     KeyboardEventBuilder = new MouseKeyboardEventBuilder(_config.KeyboardEventWindowSz, _config.KeyboardEventMonitorWindowSz, executable);
 }