C# Класс Nexus.Client.DownloadMonitoring.DownloadMonitor

This monitors the status of activities.
Наследование: INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddActivity ( AddModTask p_tskTask ) : void

Adds a task to the monitor.

CanPause ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be paused.

CanQueue ( 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.

DownloadMonitor ( ) : System

The default constructor.

PauseDownload ( IBackgroundTask p_tskTask ) : void

Pauses a task.

QueueDownload ( IBackgroundTask p_tskTask ) : void

Pauses a task.

RemoveDownload ( AddModTask p_tskTask ) : void

Removes a task from the monitor.

Tasks can only be removed if they are not running.

ResumeDownload ( IBackgroundTask p_tskTask ) : void

Resumes a task.

Защищенные методы

Метод Описание
OnPropertyChanged ( string name ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the project.

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

Метод Описание
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.

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

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

Adds a task to the monitor.
public AddActivity ( AddModTask p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.AddModTask 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

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

Determines if the given IBackgroundTask can be paused.
public CanQueue ( 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

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

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

OnPropertyChanged() защищенный Метод

Raises the INotifyPropertyChanged.PropertyChanged event of the project.
protected OnPropertyChanged ( string name ) : void
name string The property name.
Результат void

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

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

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

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

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

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

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

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