C# Class ACR_ServerCommunicator.ModuleContentPatcher

Mostrar archivo Open project: ALandFarAway/ALFA-Base-Resources

Public Methods

Method Description
ProcessContentPatches ( string ContentPatchPath, ALFA Database, ACR_ServerCommunicator Script, string ConnectionString ) : bool

Process and apply content patches. A server restart is scheduled if required for the content patch.

ProcessModuleDownloaderResourcesUpdates ( ALFA Database, ACR_ServerCommunicator Script ) : bool

Process any updates to moduledownloaderresources.xml.

Private Methods

Method Description
CompileModuleScripts ( ACR_ServerCommunicator Script, ALFA Database ) : void

Recompile all scripts in the module.

ContentPatchFileStoreFileExists ( string FileStorePath, string ConnectionString ) : bool

Check if a file store file exists.

DownloadContentPatchFromFileStore ( string FileStorePath, string LocalFileName, string ConnectionString, ACR_ServerCommunicator Script ) : void

Download a content patch file from a file store. Currently, Azure file stores are assumed. Both compressed and uncompressed versions of the file are tried in respective order.

GetFileChecksum ( string FilePath, MD5CryptoServiceProvider MD5Csp ) : string

Get the MD5 checksum of a file as a lowercased hex string.

Method Details

ProcessContentPatches() public static method

Process and apply content patches. A server restart is scheduled if required for the content patch.
public static ProcessContentPatches ( string ContentPatchPath, ALFA Database, ACR_ServerCommunicator Script, string ConnectionString ) : bool
ContentPatchPath string Supplies the configured content /// patch base path, from the database config table.
Database ALFA Supplies the database object.
Script ACR_ServerCommunicator Supplies the script object.
ConnectionString string Supplies the updater file store /// connection string.
return bool

ProcessModuleDownloaderResourcesUpdates() public static method

Process any updates to moduledownloaderresources.xml.
public static ProcessModuleDownloaderResourcesUpdates ( ALFA Database, ACR_ServerCommunicator Script ) : bool
Database ALFA Supplies the database object.
Script ACR_ServerCommunicator Supplies the script object.
return bool