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

A helper class that wraps the notifications for determinate step.
Показать файл Открыть проект Примеры использования класса

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