Exemple #1
0
        private void OnActiveWindowInfo(OnActiveWindowInfoEvent @event)
        {
            var formattedTitle = FormatTitle(@event.Title);

            AppendLine(new LogLine($"New title: {formattedTitle}, Module: {@event.ModuleFilePath}, Startup: {@event.SystemStartupTime}, IdleDuration: {@event.UserIdleDuration}", LogLevel.Debug));
            _apiUploader.OnActiveWindowInfo(@event);
        }
Exemple #2
0
 public RecordingEvent(OnActiveWindowInfoEvent @event, TimeSpan timeDiff)
 {
     Time              = @event.Time;
     Title             = @event.Title;
     ModuleFilePath    = @event.ModuleFilePath;
     SystemStartupTime = @event.SystemStartupTime;
     UserIdleDuration  = @event.UserIdleDuration;
     TimeDiff          = timeDiff;
 }
Exemple #3
0
        public void OnActiveWindowInfo(OnActiveWindowInfoEvent @event)
        {
            var now  = DateTime.Now;
            var diff = now.Subtract(_previousTime);

            _previousTime = now;

            _queuedEvents.Enqueue(new RecordingEvent(@event, diff));
        }
Exemple #4
0
 public void OnActiveWindowInfo(OnActiveWindowInfoEvent @event)
 {
     _viewModel.OnActiveWindowInfo(@event);
 }