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

A helper class that wraps the notifications for determinate step.
파일 보기 프로젝트 열기: SonarSource-VisualStudio/sonarlint-visualstudio 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetCurrentProgress double

공개 메소드들

메소드 설명
DeterminateStepProgressNotifier ( IProgressStepExecutionEvents executionEvents, int numberOfIncrements ) : System

Creates an instance of DeterminateStepProgressNotifier

IncrementProgress ( int increment = 1 ) : void

Advances the progress by an increment. The progress needs to remain in valid range for this to succeed.

NotifyCurrentProgress ( string message ) : void

Notifies the progress without incrementing the progress.

IProgressStepExecutionEvents.ProgressChanged(string, double)

NotifyIncrementedProgress ( string message, int increment = 1 ) : void

Increments and notifies the progress with a message

비공개 메소드들

메소드 설명
GetCurrentProgress ( ) : double

메소드 상세

DeterminateStepProgressNotifier() 공개 메소드

Creates an instance of DeterminateStepProgressNotifier
public DeterminateStepProgressNotifier ( IProgressStepExecutionEvents executionEvents, int numberOfIncrements ) : System
executionEvents IProgressStepExecutionEvents Required
numberOfIncrements int The number of predefined increments to the progress, at least one is expected.
리턴 System

IncrementProgress() 공개 메소드

Advances the progress by an increment. The progress needs to remain in valid range for this to succeed.
public IncrementProgress ( int increment = 1 ) : void
increment int 1 by default
리턴 void

NotifyCurrentProgress() 공개 메소드

Notifies the progress without incrementing the progress.
IProgressStepExecutionEvents.ProgressChanged(string, double)
public NotifyCurrentProgress ( string message ) : void
message string
리턴 void

NotifyIncrementedProgress() 공개 메소드

Increments and notifies the progress with a message
public NotifyIncrementedProgress ( string message, int increment = 1 ) : void
message string
increment int
리턴 void