Secure Exchanges SDK Documentation
Search Results for

    Show / Hide Table of Contents

    Class AppConfigHelper

    Inheritance
    object
    AppConfigHelper
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    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
    string settingKey
    string value
    string keyStore
    string filePath
    Returns
    Type Description
    bool

    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
    string attributeKeyValue
    string replacementValue
    string nodePathFromRoot
    string attributeKey
    string attributeValue
    Returns
    Type Description
    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

    Declaration
    public static bool UpdateSettingsConfigValue(string attributeKeyValue, string replacementValue, string filePath, string nodePathFromRoot = "appSettings", string attributeKey = "key", string attributeValue = "value")
    Parameters
    Type Name Description
    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

    string replacementValue

    The replacement value of the attributeValue property value : ie

    string filePath

    The file path of the config file

    string nodePathFromRoot

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

    string attributeKey

    The attribute key in that case will be Key

    string attributeValue

    The attribute key value to replace with the replacement value if i want to change myKeyValue the attribute key value will be value

    Returns
    Type Description
    bool
    In this article
    Back to top Secure Exchanges Inc. - Documentation