C# 클래스 Nexus.Client.ModManagement.AddModTask

Adds, and downloads if required, a mod to the mod manager.
상속: BackgroundTask, IDisposable
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
AddMod ( bool p_booQueued ) : void

Starts the mod adding task.

AddModTask ( IGameMode p_gmdGameMode, ReadMeManager p_rmmReadMeManager, IEnvironmentInfo p_eifEnvironmentInfo, ModRegistry p_mrgModRegistry, IModFormatRegistry p_frgFormatRegistry, IModRepository p_mrpModRepository, Uri p_uriPath, ConfirmOverwriteCallback p_cocConfirmOverwrite ) : System

A simple constructor that initializes the object with the given values.

Cancel ( ) : void

Cancels the task.

Dispose ( ) : void

Terminates all tasks started by this task.

After being disposed, that is no guarantee that the task's status will be correct. Further interaction with the object is undefined.

Pause ( ) : void

Pauses the task.

Queue ( ) : void

Queues the task.

Resume ( ) : void

Resumes the task.

보호된 메소드들

메소드 설명
AddModFile ( ConfirmOverwriteCallback p_cocConfirmOverwrite ) : void

Adds the mod file to the mod manager.

DownloadFiles ( List p_lstFiles, bool p_booQueued ) : void

Downloads the given files.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the INotifyPropertyChanged.PropertyChanged event.

This persists the task state to storage, so it can be resumed on client restart.

OnTaskEnded ( TaskEndedEventArgs e ) : void

Raises the IBackgroundTask.TaskEnded event.

This removes the task state from storage if it failed.

RegisterModFiles ( IList p_lstAddedMods ) : void

Registers the given mods with the registry.

비공개 메소드들

메소드 설명
BuildDescriptor ( Uri p_uriPath ) : AddModDescriptor

Build the obejct that describes the mod being added.

Downloader_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the file downloader tasks.

Downloader_TaskEnded ( object sender, TaskEndedEventArgs e ) : void

Handles the IBackgroundTask.TaskEnded event of the file downloader tasks.

GetModDisplayName ( ) : string

Gets the name of the mod to use for display.

GetModInfo ( AddModDescriptor p_amdDescriptor ) : IModInfo

Get the reposiroty info for the described mod.

ModBuilder_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the mod builder task.

ModBuilder_TaskEnded ( object sender, TaskEndedEventArgs e ) : void

Handles the IBackgroundTask.TaskEnded event of the mod builder task.

메소드 상세

AddMod() 공개 메소드

Starts the mod adding task.
public AddMod ( bool p_booQueued ) : void
p_booQueued bool
리턴 void

AddModFile() 보호된 메소드

Adds the mod file to the mod manager.
protected AddModFile ( ConfirmOverwriteCallback p_cocConfirmOverwrite ) : void
p_cocConfirmOverwrite ConfirmOverwriteCallback The delegate to call to resolve conflicts with existing files.
리턴 void

AddModTask() 공개 메소드

A simple constructor that initializes the object with the given values.
public AddModTask ( IGameMode p_gmdGameMode, ReadMeManager p_rmmReadMeManager, IEnvironmentInfo p_eifEnvironmentInfo, ModRegistry p_mrgModRegistry, IModFormatRegistry p_frgFormatRegistry, IModRepository p_mrpModRepository, Uri p_uriPath, ConfirmOverwriteCallback p_cocConfirmOverwrite ) : System
p_gmdGameMode IGameMode The game mode for which mods are being managed.
p_rmmReadMeManager ReadMeManager The ReadMe Manager info.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_mrgModRegistry ModRegistry The that contains the list of managed s.
p_frgFormatRegistry IModFormatRegistry The that contains the list /// of supported s.
p_mrpModRepository IModRepository The mod repository from which to get mods and mod metadata.
p_uriPath System.Uri The path to the mod to add.
p_cocConfirmOverwrite ConfirmOverwriteCallback The delegate to call to resolve conflicts with existing files.
리턴 System

Cancel() 공개 메소드

Cancels the task.
public Cancel ( ) : void
리턴 void

Dispose() 공개 메소드

Terminates all tasks started by this task.
After being disposed, that is no guarantee that the task's status will be correct. Further interaction with the object is undefined.
public Dispose ( ) : void
리턴 void

DownloadFiles() 보호된 메소드

Downloads the given files.
protected DownloadFiles ( List p_lstFiles, bool p_booQueued ) : void
p_lstFiles List The files to download.
p_booQueued bool
리턴 void

OnPropertyChanged() 보호된 메소드

Raises the INotifyPropertyChanged.PropertyChanged event.
This persists the task state to storage, so it can be resumed on client restart.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A describing the event's arguments.
리턴 void

OnTaskEnded() 보호된 메소드

Raises the IBackgroundTask.TaskEnded event.
This removes the task state from storage if it failed.
protected OnTaskEnded ( TaskEndedEventArgs e ) : void
e Nexus.Client.BackgroundTasks.TaskEndedEventArgs A describing the event's arguments.
리턴 void

Pause() 공개 메소드

Pauses the task.
Thrown if the task does not support pausing.
public Pause ( ) : void
리턴 void

Queue() 공개 메소드

Queues the task.
Thrown if the task does not support queuing.
public Queue ( ) : void
리턴 void

RegisterModFiles() 보호된 메소드

Registers the given mods with the registry.
protected RegisterModFiles ( IList p_lstAddedMods ) : void
p_lstAddedMods IList The mods that have been added and need to be registered with the manager.
리턴 void

Resume() 공개 메소드

Resumes the task.
Thrown if the task is not paused.
public Resume ( ) : void
리턴 void