C# Class Nexus.Client.Updating.UpdateTask

Updates the mod manager, and the currently running game mode.
Inheritance: ThreadedBackgroundTask
Exibir arquivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
Cancel ( ) : void

Cancels the update.

Update ( ConfirmActionMethod p_camConfirm ) : void

Starts the update.

UpdateTask ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, bool p_booIsAutoCheck ) : System

A simple constructor that initializes the object with its dependencies.

Protected Methods

Method Description
DoWork ( object p_objArgs ) : object

The method that is called to start the backgound task.

OnTaskEnded ( TaskEndedEventArgs e ) : void

Raises the IBackgroundTask.TaskEnded event.

Private Methods

Method Description
Updater_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Method Details

Cancel() public method

Cancels the update.
public Cancel ( ) : void
return void

DoWork() protected method

The method that is called to start the backgound task.
protected DoWork ( object p_objArgs ) : object
p_objArgs object Arguments to for the task execution.
return object

OnTaskEnded() protected method

Raises the IBackgroundTask.TaskEnded event.
protected OnTaskEnded ( TaskEndedEventArgs e ) : void
e Nexus.Client.BackgroundTasks.TaskEndedEventArgs A describing the event arguments.
return void

Update() public method

Starts the update.
public Update ( ConfirmActionMethod p_camConfirm ) : void
p_camConfirm ConfirmActionMethod The delegate to call to confirm an action.
return void

UpdateTask() public method

A simple constructor that initializes the object with its dependencies.
public UpdateTask ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, bool p_booIsAutoCheck ) : System
p_gmdGameMode IGameMode The current game mode.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_booIsAutoCheck bool Whether the check is automatic or user requested.
return System