C# Class PayPal.Api.ConfigManager

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

Méthodes publiques

Méthode 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

Méthode Description
ConfigManager ( ) : System

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

Method Details

GetConfigWithDefaults() public static méthode

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

GetDefault() public static méthode

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.
Résultat string

GetProperties() public méthode

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

IsLiveModeEnabled() public static méthode

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
Résultat bool