C# Class NuGet.Indexing.ConfigurationExtensions

显示文件 Open project: NuGet/NuGet.Services.Metadata

Public Methods

Method Description
Get ( this configuration, string key, bool defaultValue ) : bool

Tries to get a value from the configuration service.

Method Details

Get() public static method

Tries to get a value from the configuration service.
public static Get ( this configuration, string key, bool defaultValue ) : bool
configuration this The current IConfiguration instance.
key string The configuration key to fetch the value for.
defaultValue bool The value that will be used if the key is not found.
return bool