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).
Показать файл Открыть проект

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