C# 클래스 Nexus.Client.PluginManagement.OrderLog.PluginOrderLog

The log that tracks the order of plugins.
The plugin order 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 method returns the only instance that should be used.
상속: IPluginOrderLog
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
Initialize ( PluginRegistry p_mprManagedPluginRegistry, IPluginOrderLogSerializer p_posOrderSerializer, IPluginOrderValidator p_povOrderValidator ) : PluginOrderLog

Initializes the plugin log.

Release ( ) : void

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

RemovePlugin ( Plugin p_plgPlugin ) : void

Removes the given plugin from the order list.

SetPluginOrder ( IList p_lstOrderedPlugins ) : void

Sets the order of the plugins to the given order.

If the given list does not include all registered plugins, then the plugins are ordered in a manner so as to not displace the positions of the plugins whose order was not specified.

SetPluginOrderIndex ( Plugin p_plgPlugin, int p_intNewIndex ) : void

Sets the load order of the specified plugin.

보호된 메소드들

메소드 설명
SavePluginLog ( ) : void

Save the data to the Install Log file.

비공개 메소드들

메소드 설명
GetEnlistment ( ) : TransactionEnlistment

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

LoadPluginOrder ( ) : void

Loads the plugin order data from the permanent store.

PluginOrderLog ( PluginRegistry p_mprManagedPluginRegistry, IPluginOrderLogSerializer p_posOrderSerializer, IPluginOrderValidator p_povOrderValidator ) : System

A simple constructor that initializes the object with its dependencies.

메소드 상세

Initialize() 공개 정적인 메소드

Initializes the plugin log.
Thrown if the plugin order log has already /// been initialized.
public static Initialize ( PluginRegistry p_mprManagedPluginRegistry, IPluginOrderLogSerializer p_posOrderSerializer, IPluginOrderValidator p_povOrderValidator ) : PluginOrderLog
p_mprManagedPluginRegistry PluginRegistry The that contains the list /// of managed s.
p_posOrderSerializer IPluginOrderLogSerializer The object that serializes and deserializes /// data from an active plugin log permanent store.
p_povOrderValidator IPluginOrderValidator The object that validates plugin order.
리턴 PluginOrderLog

Release() 공개 메소드

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

RemovePlugin() 공개 메소드

Removes the given plugin from the order list.
public RemovePlugin ( Plugin p_plgPlugin ) : void
p_plgPlugin Nexus.Client.Plugins.Plugin The plugin to remove from the order list.
리턴 void

SavePluginLog() 보호된 메소드

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

SetPluginOrder() 공개 메소드

Sets the order of the plugins to the given order.
If the given list does not include all registered plugins, then the plugins are ordered in a manner so as to not displace the positions of the plugins whose order was not specified.
public SetPluginOrder ( IList p_lstOrderedPlugins ) : void
p_lstOrderedPlugins IList The list indicating the desired order of the plugins.
리턴 void

SetPluginOrderIndex() 공개 메소드

Sets the load order of the specified plugin.
public SetPluginOrderIndex ( Plugin p_plgPlugin, int p_intNewIndex ) : void
p_plgPlugin Nexus.Client.Plugins.Plugin The full path to the plugin file whose load order is to be set.
p_intNewIndex int The new load order index of the plugin.
리턴 void