Table of Contents

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

settingKey string
value string
keyStore string
filePath string

Returns

bool

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

attributeKeyValue string

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

replacementValue string

The replacement value of the attributeValue property value : ie <add Key='attributeKeyValue' value='myKeyValue' />

filePath string

The file path of the config file

nodePathFromRoot string

The node path root ie: SESAR.configs/instances/

attributeKey string

The attribute key <add Key='attributeKeyValue' value='myKeyValue' /> in that case will be Key

attributeValue string

The attribute key value to replace with the replacement value

Returns

bool