Esempio n. 1
0
 private void SendProgressEvent(DisplayProgressCallback displayProgressCallback)
 {
     _typedEventSender.SendEventAsync(new ProgressReportEvent {
         DisplayText = displayProgressCallback(_currentStep, TotalStepCount),
         Completed   = _currentStep,
         Total       = TotalStepCount,
     });
 }
Esempio n. 2
0
 private void IndexingServerOnStateUpdated(object sender, IndexingServerStateUpdatedEventArgs e)
 {
     _typedEventSender.SendEventAsync(new IndexingServerStateChangedEvent {
         ServerStatus        = e.State.Status,
         LastIndexUpdatedUtc = e.State.LastIndexUpdateUtc,
     });
 }
 private void FileSystemProcessorOnSnapshotComputing(object sender, OperationInfo e)
 {
     _typedEventSender.SendEventAsync(new FileSystemTreeComputing {
         OperationId = e.OperationId
     });
 }
 private void FileSystemSnapshotManagerOnSnapshotScanStarted(object sender, OperationInfo e)
 {
     _typedEventSender.SendEventAsync(new FileSystemScanStarted {
         OperationId = e.OperationId
     });
 }