Table of Contents

Class AppConfigHelper

Espace de noms
SecureExchangesSDK.Helpers
Assembly
SecureExchangesSDK.NetCore.dll
public static class AppConfigHelper
Héritage
AppConfigHelper
Membres hérités

Methods

EncryptValueWhitKeyStoreInAppSetting(string, string, string, string)

public static bool EncryptValueWhitKeyStoreInAppSetting(string settingKey, string value, string keyStore, string filePath)

Paramètres

settingKey string
value string
keyStore string
filePath string

Retour

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")

Paramètres

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

Retour

bool