C# 클래스 ACR_ServerCommunicator.ServerVaultConnector

This class encapsulates the connector between the server vault plugin's storage plugin interface, and the server vault backend store (i.e., the Azure storage provider).
파일 보기 프로젝트 열기: ALandFarAway/ALFA-Base-Resources

Private Properties

프로퍼티 타입 설명
OnSynchronizeAccountFileToVault int
OnSynchronizeAccountFromVault int
SetStoragePluginCallbacks int

공개 메소드들

메소드 설명
Initialize ( ACR_ServerCommunicator Script, string ConnectionString, bool VerboseLogging ) : bool

Initialize the server vault connector subsystem.

RefreshConfiguration ( string ConnectionString, bool VerboseLogging ) : void

Refresh configuration in the event that it had changed.

비공개 메소드들

메소드 설명
OnSynchronizeAccountFileToVault ( string AccountName, string CharacterFile, IntPtr Data, IntPtr Length, IntPtr Context ) : int

Synchronize a single character file from the spool directory to the remote storage provider. The contents of the file to transfer are already in memory. This function is called from the transfer synchronization thread.

OnSynchronizeAccountFromVault ( string AccountName, string SyncPath, IntPtr Context ) : int

Synchronize new files from the vault storage provider. The SyncPath specifies the path to download changed files from the vault storage provider to. It may be populated with existing files, and only newer files should be transferred from the vault storage provider. This function is called from the transfer synchronization thread.

SetStoragePluginCallbacks ( IntPtr SynchronizeAccountFromVault, IntPtr SynchronizeAccountFileToVault, IntPtr Context ) : int

메소드 상세

Initialize() 공개 정적인 메소드

Initialize the server vault connector subsystem.
public static Initialize ( ACR_ServerCommunicator Script, string ConnectionString, bool VerboseLogging ) : bool
Script ACR_ServerCommunicator Supplies the main script object.
ConnectionString string Supplies the connection string for /// the server vault.
VerboseLogging bool Supplies true if verbose logging is /// enabled.
리턴 bool

RefreshConfiguration() 공개 정적인 메소드

Refresh configuration in the event that it had changed.
public static RefreshConfiguration ( string ConnectionString, bool VerboseLogging ) : void
ConnectionString string Supplies the connection string for /// the server vault.
VerboseLogging bool Supplies true if verbose logging is /// enabled.
리턴 void