C# Класс Nexus.Client.ActivityMonitoring.ActivityMonitor

This monitors the status of activities.
Показать файл Открыть проект

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

Метод Описание
ActivityMonitor ( ) : System.ComponentModel

The default constructor.

AddActivity ( IBackgroundTask p_tskTask ) : void

Adds a task to the monitor.

CanPause ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be paused.

CanRemove ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be removed from the monitor.

CanResume ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be resumed.

PauseActivity ( IBackgroundTask p_tskTask ) : void

Pauses a task.

RemoveActivity ( IBackgroundTask p_tskTask ) : void

Removes a task from the monitor.

Tasks can only be removed if they are not running.

ResumeActivity ( IBackgroundTask p_tskTask ) : void

Resumes a task.

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

Метод Описание
Task_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of tasks.

This adds or removes tasks from the active task list as appropriate.

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

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

The default constructor.
public ActivityMonitor ( ) : System.ComponentModel
Результат System.ComponentModel

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

Adds a task to the monitor.
public AddActivity ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to monitor.
Результат void

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

Determines if the given IBackgroundTask can be paused.
public CanPause ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be paused.
Результат bool

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

Determines if the given IBackgroundTask can be removed from the monitor.
public CanRemove ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be removed from the monitor.
Результат bool

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

Determines if the given IBackgroundTask can be resumed.
public CanResume ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be resumed.
Результат bool

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

Pauses a task.
public PauseActivity ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to pause.
Результат void

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

Removes a task from the monitor.
Tasks can only be removed if they are not running.
public RemoveActivity ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to remove.
Результат void

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

Resumes a task.
public ResumeActivity ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to resume.
Результат void