Esempio n. 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);
        }
Esempio n. 2
0
 public WorkTimeUowTests()
 {
     _repository = CreateRepo();
     _uow        = Create(_repository);
 }