Class ConfigurationBuilderExtensions
- Namespace
- Steeltoe.Extensions.Configuration.Kubernetes.ServiceBinding
- Assembly
- Steeltoe.Extensions.Configuration.Kubernetes.ServiceBinding.dll
Extension methods for registering Kubernetes Steeltoe.Extensions.Configuration.Kubernetes.ServiceBinding.ServiceBindingConfigurationProvider with IConfigurationBuilder.
public static class ConfigurationBuilderExtensions
- Inheritance
-
ConfigurationBuilderExtensions
- Inherited Members
Methods
AddKubernetesServiceBindings(IConfigurationBuilder)
Adds configuration using files from the directory path specified by the environment variable "SERVICE_BINDING_ROOT". File name and directory paths are used as the key, and the file contents are used as the values.
public static IConfigurationBuilder AddKubernetesServiceBindings(this IConfigurationBuilder builder)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
Returns
AddKubernetesServiceBindings(IConfigurationBuilder, bool)
Adds configuration using files from the directory path specified by the environment variable "SERVICE_BINDING_ROOT". File name and directory paths are used as the key, and the file contents are used as the values.
public static IConfigurationBuilder AddKubernetesServiceBindings(this IConfigurationBuilder builder, bool optional)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
optionalboolWhether the directory path is optional.
Returns
AddKubernetesServiceBindings(IConfigurationBuilder, bool, bool)
Adds configuration using files from the directory path specified by the environment variable "SERVICE_BINDING_ROOT". File name and directory paths are used as the key, and the file contents are used as the values.
public static IConfigurationBuilder AddKubernetesServiceBindings(this IConfigurationBuilder builder, bool optional, bool reloadOnChange)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
optionalboolWhether the directory path is optional.
reloadOnChangeboolWhether the configuration should be reloaded if the files are changed, added or removed.
Returns
AddKubernetesServiceBindings(IConfigurationBuilder, bool, bool, Predicate<string>)
Adds configuration using files from the directory path specified by the environment variable "SERVICE_BINDING_ROOT". File name and directory paths are used as the key, and the file contents are used as the values.
public static IConfigurationBuilder AddKubernetesServiceBindings(this IConfigurationBuilder builder, bool optional, bool reloadOnChange, Predicate<string> ignoreKeyPredicate)
Parameters
builderIConfigurationBuilderThe IConfigurationBuilder to add to.
optionalboolWhether the directory path is optional.
reloadOnChangeboolWhether the configuration should be reloaded if the files are changed, added or removed.
ignoreKeyPredicatePredicate<string>A predicate which is called before adding a key to the configuration. If it returns false, the key will be ignored.