C# Класс Nexus.Client.ModManagement.InstallationLog.UpgradeMismatchedVersionScanner

Checks to see if any mods' versions are different than the recorded versions in the install log. If so, the discrepancies are dealt with.
Наследование: IBackgroundTaskSet
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Scan ( ) : void

Scans the mods folder for fomods that have versions that differ from their versions in the install log.

If fomods with versions that differ from those in the install log are found, the use is asked whether to replace or upgrade the fomod. Replacing the fomod merely changes the version in the install log, but makes no system changes. Upgrading the fomod performs an in-place upgrade.

UpgradeMismatchedVersionScanner ( IInstallLog p_ilgInstallLog, ModManager p_mmgModManager, ConfirmMismatchedVersionModUpgradeDelegate p_dlgConfirmUpgrade, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : System

A simple constructor that initializes the object with its dependencies.

Wait ( ) : void

Blocks until the task set is completed.

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

Метод Описание
OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void

Raises the TaskSetCompleted event.

OnTaskStarted ( EventArgs e ) : void

Raises the TaskStarted event.

Replace ( IMod>.IList p_lstModsToReplace ) : void

Replaces the given fomods in the install log.

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

Метод Описание
Reactivation_TaskStarted ( object sender, EventArgs e ) : void
Upgrade ( object p_lstModsToUpgrade ) : void

Upgrades the given fomods.

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

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

Raises the TaskSetCompleted event.
protected OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void
e Nexus.Client.BackgroundTasks.TaskSetCompletedEventArgs A describing the task that was started.
Результат void

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

Raises the TaskStarted event.
protected OnTaskStarted ( EventArgs e ) : void
e EventArgs An describing the task that was started.
Результат void

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

Replaces the given fomods in the install log.
protected Replace ( IMod>.IList p_lstModsToReplace ) : void
p_lstModsToReplace IMod>.IList The list of fomods to replace.
Результат void

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

Scans the mods folder for fomods that have versions that differ from their versions in the install log.
If fomods with versions that differ from those in the install log are found, the use is asked whether to replace or upgrade the fomod. Replacing the fomod merely changes the version in the install log, but makes no system changes. Upgrading the fomod performs an in-place upgrade.
public Scan ( ) : void
Результат void

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

A simple constructor that initializes the object with its dependencies.
public UpgradeMismatchedVersionScanner ( IInstallLog p_ilgInstallLog, ModManager p_mmgModManager, ConfirmMismatchedVersionModUpgradeDelegate p_dlgConfirmUpgrade, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : System
p_ilgInstallLog IInstallLog The install log to use to log file installations.
p_mmgModManager ModManager The mod manager to use to upgrade any replaced mods.
p_dlgConfirmUpgrade ConfirmMismatchedVersionModUpgradeDelegate The delegate to call to confirm that a mismatched version mod should be upgraded.
p_dlgOverwriteConfirmationDelegate ConfirmItemOverwriteDelegate The method to call in order to confirm an overwrite.
Результат System

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

Blocks until the task set is completed.
public Wait ( ) : void
Результат void