private void SendProgressEvent(DisplayProgressCallback displayProgressCallback) { _typedEventSender.SendEventAsync(new ProgressReportEvent { DisplayText = displayProgressCallback(_currentStep, TotalStepCount), Completed = _currentStep, Total = TotalStepCount, }); }
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 }); }