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
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
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