C# 클래스 Nexus.Client.PluginManagement.InstallationLog.ActivePluginLog

The log that tracks plugins that have been enabled.
The plugin log can only be accessed by one install task at a time, so this object is a singleton to help enforce that policy. Note, however, that the singleton nature of the log is not meant to provide global access to the object. As such, there is no static accessor to retrieve the singleton instance. Instead, the Initialize(PluginRegistry, IActivePluginLogSerializer) method returns the only instance that should be used.
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
ActivatePlugin ( Plugin p_plgPlugin ) : void

Activates the given plugin.

ActivatePlugin ( string p_strPath ) : void

Activates the specified plugin.

DeactivatePlugin ( Plugin p_plgPlugin ) : void

Deactivates the given plugin.

DeactivatePlugin ( string p_strPath ) : void

Deactivates the specified plugin.

Initialize ( PluginRegistry p_mprManagedPluginRegistry, IActivePluginLogSerializer p_plsSerializer ) : ActivePluginLog

Initializes the plugin log.

IsPluginActive ( Plugin p_plgPlugin ) : bool

Determines if the given plugin is active.

Release ( ) : void

This disposes of the singleton object, allowing it to be re-initialized.

보호된 메소드들

메소드 설명
SavePluginLog ( ) : void

Save the data to the Install Log file.

비공개 메소드들

메소드 설명
ActivePluginLog ( PluginRegistry p_mprManagedPluginRegistry, IActivePluginLogSerializer p_plsSerializer ) : System

A simple constructor that initializes the object with its dependencies.

GetEnlistment ( ) : TransactionEnlistment

Gets an enlistment into the ambient transaction, if one exists.

LoadPluginLog ( ) : void

Loads the data from the Install Log file.

메소드 상세

ActivatePlugin() 공개 메소드

Activates the given plugin.
public ActivatePlugin ( Plugin p_plgPlugin ) : void
p_plgPlugin Nexus.Client.Plugins.Plugin The plugin to activate.
리턴 void

ActivatePlugin() 공개 메소드

Activates the specified plugin.
public ActivatePlugin ( string p_strPath ) : void
p_strPath string The path to the plugin to activate.
리턴 void

DeactivatePlugin() 공개 메소드

Deactivates the given plugin.
public DeactivatePlugin ( Plugin p_plgPlugin ) : void
p_plgPlugin Nexus.Client.Plugins.Plugin The plugin to deactivate.
리턴 void

DeactivatePlugin() 공개 메소드

Deactivates the specified plugin.
public DeactivatePlugin ( string p_strPath ) : void
p_strPath string The path to the plugin to deactivate.
리턴 void

Initialize() 공개 정적인 메소드

Initializes the plugin log.
Thrown if the plugins log has already /// been initialized.
public static Initialize ( PluginRegistry p_mprManagedPluginRegistry, IActivePluginLogSerializer p_plsSerializer ) : ActivePluginLog
p_mprManagedPluginRegistry PluginRegistry The that contains the list /// of managed s.
p_plsSerializer IActivePluginLogSerializer The object that serializes and deserializes /// data from an active plugin log permanent store.
리턴 ActivePluginLog

IsPluginActive() 공개 메소드

Determines if the given plugin is active.
public IsPluginActive ( Plugin p_plgPlugin ) : bool
p_plgPlugin Nexus.Client.Plugins.Plugin The plugin whose active state is to be determined.
리턴 bool

Release() 공개 메소드

This disposes of the singleton object, allowing it to be re-initialized.
public Release ( ) : void
리턴 void

SavePluginLog() 보호된 메소드

Save the data to the Install Log file.
protected SavePluginLog ( ) : void
리턴 void