C# Class NuGet.Services.BasicSearch.ConfigurationService

Inheritance: IConfiguration
Mostra file Open project: NuGet/NuGet.Services.Metadata

Public Methods

Method Description
ConfigurationService ( ISecretReaderFactory secretReaderFactory ) : System
Get ( string key ) : string

Gets a value from the configuration service.

InitSecretInjector ( ) : ISecretInjector
TryGet ( string key, string &value ) : bool

Tries to get a value from the configuration service.

Method Details

ConfigurationService() public method

public ConfigurationService ( ISecretReaderFactory secretReaderFactory ) : System
secretReaderFactory ISecretReaderFactory
return System

Get() public method

Gets a value from the configuration service.
public Get ( string key ) : string
key string The configuration key to fetch the value for.
return string

InitSecretInjector() public method

public InitSecretInjector ( ) : ISecretInjector
return ISecretInjector

TryGet() public method

Tries to get a value from the configuration service.
public TryGet ( string key, string &value ) : bool
key string The configuration key to fetch the value for.
value string The value that will be set to null if the key is not found.
return bool