C# Класс PayPal.Api.ConfigManager

ConfigManager loads the configuration file and hands out appropriate parameters to application
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetConfigWithDefaults ( string>.Dictionary config ) : string>.Dictionary

Creates new configuration that combines incoming configuration dictionary and defaults

GetDefault ( string configKey ) : string

Gets the default configuration value for the specified key.

GetProperties ( ) : string>.Dictionary

Returns all properties from the config file

IsLiveModeEnabled ( string>.Dictionary config ) : bool

Returns whether or not live mode is enabled in the given configuration.

Приватные методы

Метод Описание
ConfigManager ( ) : System

Explicit static constructor to tell C# compiler not to mark type as beforefieldinit

Описание методов

GetConfigWithDefaults() публичный статический Метод

Creates new configuration that combines incoming configuration dictionary and defaults
public static GetConfigWithDefaults ( string>.Dictionary config ) : string>.Dictionary
config string>.Dictionary
Результат string>.Dictionary

GetDefault() публичный статический Метод

Gets the default configuration value for the specified key.
public static GetDefault ( string configKey ) : string
configKey string The key to lookup in the default configuration.
Результат string

GetProperties() публичный Метод

Returns all properties from the config file
public GetProperties ( ) : string>.Dictionary
Результат string>.Dictionary

IsLiveModeEnabled() публичный статический Метод

Returns whether or not live mode is enabled in the given configuration.
public static IsLiveModeEnabled ( string>.Dictionary config ) : bool
config string>.Dictionary Configuration to use
Результат bool