C# Class SonarLint.VisualStudio.Progress.UnitTests.ConfigurableProgressController

Partial class implementation of IProgressStepExecutionEvents
Inheritance: IProgressStepExecutionEvents
Show file Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Private Properties

Property Type Description
IProgressController Task
IProgressController bool
IProgressController void
IProgressStepExecutionEvents void
IServiceProvider object

Public Methods

Method Description
AssertNoProgressChangeEvents ( ) : void
AssertProgressChangeEvents ( double>.List expectedOrderedProgressEvents ) : void
Cancel ( ) : void

Cancels the execution

ConfigurableProgressController ( IServiceProvider serviceProvider, int waitForCompletion = DefaultWaitForCompletionMS ) : SonarLint.VisualStudio.Progress.Controller
Dispose ( ) : void
Execute ( IProgressStepOperation stepOperation ) : void

Executes the operation and waits for completion

Reset ( ) : void

Resets the configuration

Private Methods

Method Description
IProgressController ( ) : Task
IProgressController ( ) : bool
IProgressController ( IProgressStepFactory stepFactory, IEnumerable stepsDefinition ) : void
IProgressStepExecutionEvents ( string progressDetailText, double progress ) : void
IServiceProvider ( Type serviceType ) : object

Method Details

AssertNoProgressChangeEvents() public method

public AssertNoProgressChangeEvents ( ) : void
return void

AssertProgressChangeEvents() public method

public AssertProgressChangeEvents ( double>.List expectedOrderedProgressEvents ) : void
expectedOrderedProgressEvents double>.List
return void

Cancel() public method

Cancels the execution
public Cancel ( ) : void
return void

ConfigurableProgressController() public method

public ConfigurableProgressController ( IServiceProvider serviceProvider, int waitForCompletion = DefaultWaitForCompletionMS ) : SonarLint.VisualStudio.Progress.Controller
serviceProvider IServiceProvider
waitForCompletion int
return SonarLint.VisualStudio.Progress.Controller

Dispose() public method

public Dispose ( ) : void
return void

Execute() public method

Executes the operation and waits for completion
public Execute ( IProgressStepOperation stepOperation ) : void
stepOperation IProgressStepOperation The operation to execute
return void

Reset() public method

Resets the configuration
public Reset ( ) : void
return void