C# Class 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).
Mostrar archivo Open project: ALandFarAway/ALFA-Base-Resources

Private Properties

Property Type Description
OnSynchronizeAccountFileToVault int
OnSynchronizeAccountFromVault int
SetStoragePluginCallbacks int

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Initialize() public static method

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.
return bool

RefreshConfiguration() public static method

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.
return void