C# Class PayPal.Api.ConfigManager

ConfigManager loads the configuration file and hands out appropriate parameters to application
Mostrar archivo Open project: paypal/PayPal-NET-SDK Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
ConfigManager ( ) : System

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

Method Details

GetConfigWithDefaults() public static method

Creates new configuration that combines incoming configuration dictionary and defaults
public static GetConfigWithDefaults ( string>.Dictionary config ) : string>.Dictionary
config string>.Dictionary
return string>.Dictionary

GetDefault() public static method

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.
return string

GetProperties() public method

Returns all properties from the config file
public GetProperties ( ) : string>.Dictionary
return string>.Dictionary

IsLiveModeEnabled() public static method

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
return bool