C# Класс ACR_ServerCommunicator.ModuleContentPatcher

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

ProcessContentPatches() публичный статический Метод

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.
Результат bool

ProcessModuleDownloaderResourcesUpdates() публичный статический Метод

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.
Результат bool