C# Class Nexus.Client.DownloadMonitoring.DownloadMonitor

This monitors the status of activities.
Inheritance: INotifyPropertyChanged
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnPropertyChanged ( string name ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the project.

Private Methods

Méthode Description
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.

Method Details

AddActivity() public méthode

Adds a task to the monitor.
public AddActivity ( AddModTask p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.AddModTask The task to monitor.
Résultat void

CanPause() public méthode

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.
Résultat bool

CanQueue() public méthode

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.
Résultat bool

CanRemove() public méthode

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.
Résultat bool

CanResume() public méthode

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.
Résultat bool

DownloadMonitor() public méthode

The default constructor.
public DownloadMonitor ( ) : System
Résultat System

OnPropertyChanged() protected méthode

Raises the INotifyPropertyChanged.PropertyChanged event of the project.
protected OnPropertyChanged ( string name ) : void
name string The property name.
Résultat void

PauseDownload() public méthode

Pauses a task.
public PauseDownload ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to pause.
Résultat void

QueueDownload() public méthode

Pauses a task.
public QueueDownload ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to pause.
Résultat void

RemoveDownload() public méthode

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.
Résultat void

ResumeDownload() public méthode

Resumes a task.
public ResumeDownload ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to resume.
Résultat void