C# 클래스 Nexus.Client.ModManagement.Scripting.ScriptExecutorBase

A base class for script executors.
This class implements some base functionality, making writing executors simpler.
상속: IScriptExecutor
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
DoExecute ( IScript p_scpScript ) : bool

Performs the actual script execution.

This method is to be overridden by implementors to provide the actual execution logic.

Execute ( IScript p_scpScript ) : bool

Executes the script.

Wait ( ) : void

Blocks until the task set is completed.

보호된 메소드들

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

Raises the TaskSetCompleted event.

OnTaskSetCompleted ( bool p_booSuccess, string p_strMessage, IScript p_scpExecutedScript ) : void

Raises the TaskSetCompleted event.

OnTaskStarted ( EventArgs e ) : void

Raises the TaskStarted event.

OnTaskStarted ( IBackgroundTask p_bgtTask ) : void

Raises the TaskStarted event.

메소드 상세

DoExecute() 공개 추상적인 메소드

Performs the actual script execution.
This method is to be overridden by implementors to provide the actual execution logic.
public abstract DoExecute ( IScript p_scpScript ) : bool
p_scpScript IScript
리턴 bool

Execute() 공개 메소드

Executes the script.
public Execute ( IScript p_scpScript ) : bool
p_scpScript IScript
리턴 bool

OnTaskSetCompleted() 보호된 메소드

Raises the TaskSetCompleted event.
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, IScript p_scpExecutedScript ) : void
p_booSuccess bool Whether or not the task set completed successfully.
p_strMessage string The message of the completed task set.
p_scpExecutedScript IScript The script that was executed.
리턴 void

OnTaskStarted() 보호된 메소드

Raises the TaskStarted event.
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