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

The base class for all mod installers.
상속: IBackgroundTaskSet
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

보호된 프로퍼티들

프로퍼티 타입 설명
objInstallLock object
objUninstallLock object

공개 메소드들

메소드 설명
ModInstallerBase ( ) : System

The default constructor.

Wait ( ) : void

Blocks until the task set is completed.

보호된 메소드들

메소드 설명
OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void

Raises the TaskSetCompleted event.

The event is raised asynchronously, so the installer can continue its work uninterrupted. This is to prevent deadlocks, primarily on the UI thread.

OnTaskSetCompleted ( bool p_booSuccess, string p_strMessage, IMod p_modMod ) : void

Raises the TaskSetCompleted event.

OnTaskStarted ( EventArgs e ) : void

Raises the TaskStarted event.

The event is raised asynchronously, so the installer can continue its work uninterrupted. This is to prevent deadlocks, primarily on the UI thread.

OnTaskStarted ( IBackgroundTask p_bgtTask ) : void

Raises the TaskStarted event.

비공개 메소드들

메소드 설명
EndTaskSetCompletedCallback ( IAsyncResult p_asrResult ) : void

The callback called by the begin invoke method used to call the event asynchronously upon completion of the event.

EndTaskStartedCallback ( IAsyncResult p_asrResult ) : void

The callback called by the begin invoke method used to call the event asynchronously upon completion of the event.

RaiseTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void

Raises the TaskSetCompleted event.

RaiseTaskStarted ( EventArgs e ) : void

Raises the TaskStarted event.

메소드 상세

ModInstallerBase() 공개 메소드

The default constructor.
public ModInstallerBase ( ) : System
리턴 System

OnTaskSetCompleted() 보호된 메소드

Raises the TaskSetCompleted event.
The event is raised asynchronously, so the installer can continue its work uninterrupted. This is to prevent deadlocks, primarily on the UI thread.
protected OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void
e Nexus.Client.BackgroundTasks.TaskSetCompletedEventArgs A describing the task that was started.
리턴 void

OnTaskSetCompleted() 보호된 메소드

Raises the TaskSetCompleted event.
protected OnTaskSetCompleted ( bool p_booSuccess, string p_strMessage, IMod p_modMod ) : void
p_booSuccess bool Whether or not the task set completed successfully.
p_strMessage string The message of the completed task set.
p_modMod IMod The mod the installer acted upon.
리턴 void

OnTaskStarted() 보호된 메소드

Raises the TaskStarted event.
The event is raised asynchronously, so the installer can continue its work uninterrupted. This is to prevent deadlocks, primarily on the UI thread.
protected OnTaskStarted ( EventArgs e ) : void
e EventArgs An describing the task that was started.
리턴 void

OnTaskStarted() 보호된 메소드

Raises the TaskStarted event.
protected OnTaskStarted ( IBackgroundTask p_bgtTask ) : void
p_bgtTask IBackgroundTask The task that was started.
리턴 void

Wait() 공개 메소드

Blocks until the task set is completed.
public Wait ( ) : void
리턴 void

프로퍼티 상세

objInstallLock 보호되어 있는 정적으로 프로퍼티

We only want on installer running at a time, so as not to mess up the file system, of settings files. As such, all installers lock on this lock object.
protected static object objInstallLock
리턴 object

objUninstallLock 보호되어 있는 정적으로 프로퍼티

We only want on uninstaller running at a time, so as not to mess up the file system, of settings files. As such, all uninstaller lock on this lock object.
protected static object objUninstallLock
리턴 object