Class AppConfigHelper
Inheritance
System.Object
AppConfigHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SecureExchangesSDK.Helpers
Assembly: SecureExchangesSDK.dll
Syntax
public static class AppConfigHelper
Methods
EncryptValueWhitKeyStoreInAppSetting(String, String, String, String)
Declaration
public static bool EncryptValueWhitKeyStoreInAppSetting(string settingKey, string value, string keyStore, string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | settingKey | |
System.String | value | |
System.String | keyStore | |
System.String | filePath |
Returns
Type | Description |
---|---|
System.Boolean |
UpdateCurrentSettingsConfigValue(String, String, String, String, String)
Declaration
public static bool UpdateCurrentSettingsConfigValue(string attributeKeyValue, string replacementValue, string nodePathFromRoot = "appSettings", string attributeKey = "key", string attributeValue = "value")
Parameters
Type | Name | Description |
---|---|---|
System.String | attributeKeyValue | |
System.String | replacementValue | |
System.String | nodePathFromRoot | |
System.String | attributeKey | |
System.String | attributeValue |
Returns
Type | Description |
---|---|
System.Boolean |
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
Declaration
public static bool UpdateSettingsConfigValue(string attributeKeyValue, string replacementValue, string filePath, string nodePathFromRoot = "appSettings", string attributeKey = "key", string attributeValue = "value")
Parameters
Type | Name | Description |
---|---|---|
System.String | attributeKeyValue | The 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 |
System.String | replacementValue | The replacement value of the attributeValue property value : ie |
System.String | filePath | The file path of the config file |
System.String | nodePathFromRoot | The node path root ie: SESAR.configs/instances/ |
System.String | attributeKey | The attribute key |
System.String | attributeValue | The attribute key value to replace with the replacement value if i want to change myKeyValue |
Returns
Type | Description |
---|---|
System.Boolean |