C# Класс SonarLint.VisualStudio.Progress.Controller.SequentialProgressController

Наследование: IProgressController
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Create ( IServiceProvider serviceProvider ) : SequentialProgressController

Creates initializes SequentialProgressController

Create ( IServiceProvider serviceProvider, IProgressStepFactory stepFactory ) : SequentialProgressController

Creates initializes SequentialProgressController

GetService ( Type serviceType ) : object

Returns the instance of a service for the specified service type

Initialize ( ) : void

Initializes the controller with a set of ProgressStepDefinition

SequentialProgressController ( IServiceProvider serviceProvider ) : System

Constructs a sequential progress controller

Start ( ) : System.Threading.Tasks.Task

Starts executing the initialized steps. The method is not thread safe but can be called from any thread.

TryAbort ( ) : bool

Attempts to abort the current operation. In case not started or the operation is not cancellable the abort request will be ignored. CanAbort IsStarted

Приватные методы

Метод Описание
ConfigureStepEventListeners ( bool start ) : void
CreateStepOperations ( IEnumerable definitions ) : IEnumerable
Initialize ( IProgressStepFactory factory, IEnumerable stepsDefinition ) : void
OnCancellableChanged ( bool cancellable ) : void
OnFinished ( ProgressControllerResult result ) : void
OnStarted ( ) : void
OnStepStateChanged ( object sender, StepExecutionChangedEventArgs args ) : void
ThreadSafeCancelCancellationTokenSource ( ) : bool
ThreadSafeCreateCancellationTokenSource ( ) : void
ThreadSafeDisposeCancellationTokenSource ( ) : void

Описание методов

Create() публичный статический Метод

Creates initializes SequentialProgressController
public static Create ( IServiceProvider serviceProvider ) : SequentialProgressController
serviceProvider IServiceProvider Service provider instance. Required.
Результат SequentialProgressController

Create() публичный статический Метод

Creates initializes SequentialProgressController
public static Create ( IServiceProvider serviceProvider, IProgressStepFactory stepFactory ) : SequentialProgressController
serviceProvider IServiceProvider Service provider instance. Required.
stepFactory IProgressStepFactory to use when create steps from definitions
Результат SequentialProgressController

GetService() публичный Метод

Returns the instance of a service for the specified service type
public GetService ( Type serviceType ) : object
serviceType System.Type The type of the requested service
Результат object

Initialize() публичный Метод

Initializes the controller with a set of ProgressStepDefinition
public Initialize ( ) : void
Результат void

SequentialProgressController() публичный Метод

Constructs a sequential progress controller
public SequentialProgressController ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider Required service provider
Результат System

Start() публичный Метод

Starts executing the initialized steps. The method is not thread safe but can be called from any thread.
public Start ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

TryAbort() публичный Метод

Attempts to abort the current operation. In case not started or the operation is not cancellable the abort request will be ignored. CanAbort IsStarted
public TryAbort ( ) : bool
Результат bool