Property | Type | Description | |
---|---|---|---|
ChangeCancellability | void | ||
CheckSupportedController | void | ||
CheckSupportedProgressEvents | void | ||
ControllerFinished | void | ||
ControllerStarted | void | ||
CreateAndConfigureInstance | |||
Dispose | void | ||
GetCompletedStepCount | double | ||
GroupToExecutionUnits | ExecutionGroup[] | ||
InitializeStep | void | ||
InitializeStepViewModels | void | ||
OnCancellationSupportChanged | void | ||
OnStepExecutionChanged | void | ||
ProgressObserver | SonarLint.VisualStudio.Progress.MVVM | ||
StartObserving | ProgressObserver | ||
StartObserving | ProgressObserver | ||
StartObserving | ProgressObserver | ||
StartObserving | ProgressObserver | ||
StartObserving | ProgressObserver | ||
StartObserving | ProgressObserver | ||
ThrowIfDisposed | void | ||
UpdateMainProgress | void | ||
UpdateViewModelStep | void |
Method | Description | |
---|---|---|
Dispose ( ) : void |
The class will dispose itself once the controller has finished
|
|
StopObserving ( ProgressObserver observer ) : void |
Stops the specified ProgressObserver from observing. The method is thread safe.
|
Method | Description | |
---|---|---|
ChangeCancellability ( bool cancellable ) : void | ||
CheckSupportedController ( IProgressController progressController ) : void |
Checks if the IProgressController meets the requirements to be observable by this class
|
|
CheckSupportedProgressEvents ( IProgressEvents progressEvents ) : void |
Checks if the IProgressEvents meets the requirements to be observable by this class
|
|
ControllerFinished ( object sender, |
||
ControllerStarted ( object sender, |
||
CreateAndConfigureInstance ( IServiceProvider serviceProvider, IProgressVisualizer visualizer, IProgressEvents progressEvents, ICommand cancelCommand, |
||
Dispose ( bool disposing ) : void | ||
GetCompletedStepCount ( IEnumerable |
||
GroupToExecutionUnits ( IEnumerable |
Steps could be hidden which means that they won't be visible. In that case the progress needs to be scaled to accommodate for those steps and also the visual indicator that a step is running needs be conceptually correct - which means that all the hidden steps needed to be aggregated to a non-hidden one for visualization purposes.
|
|
InitializeStep ( ProgressStepViewModel viewModel, ExecutionGroup group ) : void |
Sets the initial state of a ProgressStepViewModel
|
|
InitializeStepViewModels ( ) : void | ||
OnCancellationSupportChanged ( object sender, CancellationSupportChangedEventArgs e ) : void | ||
OnStepExecutionChanged ( object sender, StepExecutionChangedEventArgs e ) : void | ||
ProgressObserver ( IServiceProvider serviceProvider, IProgressVisualizer host, IProgressEvents progressEvents, ProgressControllerViewModel state ) : SonarLint.VisualStudio.Progress.MVVM | ||
StartObserving ( IProgressController controller ) : ProgressObserver | ||
StartObserving ( IProgressController controller, IProgressVisualizer visualizer ) : ProgressObserver | ||
StartObserving ( IProgressController controller, IProgressVisualizer visualizer, ProgressControllerViewModel state ) : ProgressObserver | ||
StartObserving ( IServiceProvider serviceProvider, IProgressEvents progressEvents ) : ProgressObserver | ||
StartObserving ( IServiceProvider serviceProvider, IProgressEvents progressEvents, IProgressVisualizer visualizer ) : ProgressObserver | ||
StartObserving ( IServiceProvider serviceProvider, IProgressEvents progressEvents, IProgressVisualizer visualizer, ProgressControllerViewModel state ) : ProgressObserver | ||
ThrowIfDisposed ( ) : void | ||
UpdateMainProgress ( StepExecutionChangedEventArgs e ) : void |
Updates the main progress based on the number of steps in final state an the current step being executed. Each IProgressStep which impacts progress will have one "slot" in the main progress bar.
|
|
UpdateViewModelStep ( StepExecutionChangedEventArgs e ) : void |
Updates the ProgressStepViewModel with the current step changes. The ProgressStepViewModel represents a ExecutionGroup of one visible step and zero or more hidden steps. The progress in ProgressStepViewModel is used as the sub progress and it will be indeterminate if there's one indeterminate IProgressStep in ExecutionGroup, otherwise the sub progress will be relative to the number of steps in ExecutionGroup.
|
public static StopObserving ( ProgressObserver observer ) : void | ||
observer | ProgressObserver | An existing |
return | void |