C# Class Nexus.Client.ActivityMonitoring.UI.ActivityMonitorVM

This class encapsulates the data and the operations presented by UI elements that display activity monitoring.
Afficher le fichier Open project: NexusMods/NexusModManager-4.5

Méthodes publiques

Méthode Description
ActivityMonitorVM ( ActivityMonitor p_amnActivityMonitor, ISettings p_setSettings ) : Nexus.Client.BackgroundTasks

A simple constructor that initializes the object with its dependencies.

CanCancelTask ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be cancelled.

CanPauseActivity ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be paused.

CanRemoveActivity ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be removed.

CanResumeActivity ( IBackgroundTask p_tskTask ) : bool

Determines if the given IBackgroundTask can be resumed.

CancelTask ( IBackgroundTask p_tskTask ) : void

Cancels the given task.

PauseTask ( IBackgroundTask p_tskTask ) : void

Puases the given task.

RemoveTask ( IBackgroundTask p_tskTask ) : void

Removes the given task.

ResumeTask ( IBackgroundTask p_tskTask ) : void

Resumes the given task.

Method Details

ActivityMonitorVM() public méthode

A simple constructor that initializes the object with its dependencies.
public ActivityMonitorVM ( ActivityMonitor p_amnActivityMonitor, ISettings p_setSettings ) : Nexus.Client.BackgroundTasks
p_amnActivityMonitor ActivityMonitor The activity manager to use to manage the monitored activities.
p_setSettings ISettings The application and user settings.
Résultat Nexus.Client.BackgroundTasks

CanCancelTask() public méthode

Determines if the given IBackgroundTask can be cancelled.
public CanCancelTask ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be cancelled.
Résultat bool

CanPauseActivity() public méthode

Determines if the given IBackgroundTask can be paused.
public CanPauseActivity ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be paused.
Résultat bool

CanRemoveActivity() public méthode

Determines if the given IBackgroundTask can be removed.
public CanRemoveActivity ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be removed.
Résultat bool

CanResumeActivity() public méthode

Determines if the given IBackgroundTask can be resumed.
public CanResumeActivity ( IBackgroundTask p_tskTask ) : bool
p_tskTask IBackgroundTask The task for which it is to be determined /// if it can be resumed.
Résultat bool

CancelTask() public méthode

Cancels the given task.
public CancelTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to cancel.
Résultat void

PauseTask() public méthode

Puases the given task.
public PauseTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to pause.
Résultat void

RemoveTask() public méthode

Removes the given task.
public RemoveTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to remove.
Résultat void

ResumeTask() public méthode

Resumes the given task.
public ResumeTask ( IBackgroundTask p_tskTask ) : void
p_tskTask IBackgroundTask The task to resume.
Résultat void