<PackageReference Include="Relativity.Server.Testing.Framework.SDK" Version="5000.1.0" />

IConfigurationService

public interface IConfigurationService
Represents the configuration service that provides a set of members for getting the configuration parameters.

Gets the configuration root.

Gets the Relativity instance configuration.

T Get<T>()

Bind the configuration to a new instance of type T.

T GetValue<T>(string key)

Gets the configuration value/section by the specified key and converts it to a new instance of type T. Throws ConfigurationKeyNotFoundException if the configuration by the specified key is not found.

string GetValue(string key)

Gets the string configuration value by the specified key. Throws ConfigurationKeyNotFoundException if the configuration by the specified key is not found.

T GetValueOrDefault<T>(string key)

Gets the configuration value/section by the specified key and converts it to a new instance of type T; or default(T) if not found.

T GetValueOrDefault<T>(string key, T defaultValue)

Gets the configuration value/section by the specified key and converts it to a new instance of type T; or defaultValue if not found.

string GetValueOrDefault(string key)

Gets the configuration value by the specified key or null if not found.

string GetValueOrDefault(string key, string defaultValue)

Gets the configuration value by the specified key or defaultValue if not found.