Class AppConfigHelper
- Namespace
- SecureExchangesSDK.Helpers
- Assembly
- SecureExchangesSDK.NetCore.dll
public static class AppConfigHelper
- Inheritance
-
AppConfigHelper
- Inherited Members
Methods
EncryptValueWhitKeyStoreInAppSetting(string, string, string, string)
public static bool EncryptValueWhitKeyStoreInAppSetting(string settingKey, string value, string keyStore, string filePath)
Parameters
Returns
UpdateSettingsConfigValue(string, string, string, string, string, string)
That method will update a config file. You must specifi the path to the parent nodes. The config fill will be updated and refresh
public static bool UpdateSettingsConfigValue(string attributeKeyValue, string replacementValue, string filePath, string nodePathFromRoot = "appSettings", string attributeKey = "key", string attributeValue = "value")
Parameters
attributeKeyValuestringThe attribute keyvalue represent the attribute key value to find the right node of a node ie: add key=attributeKeyValue value=myKeyValue that will be attributeKeyValue in that case
replacementValuestringThe replacement value of the attributeValue property value : ie <add Key='attributeKeyValue' value='myKeyValue' />
filePathstringThe file path of the config file
nodePathFromRootstringThe node path root ie: SESAR.configs/instances/
attributeKeystringThe attribute key <add Key='attributeKeyValue' value='myKeyValue' /> in that case will be Key
attributeValuestringThe attribute key value to replace with the replacement value