C# 클래스 SonarLint.VisualStudio.Progress.Controller.SequentialProgressController

상속: IProgressController
파일 보기 프로젝트 열기: SonarSource-VisualStudio/sonarlint-visualstudio 1 사용 예제들

공개 메소드들

메소드 설명
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