Class ConfigServerServiceCollectionExtensions
- Namespace
- Steeltoe.Configuration.ConfigServer
- Assembly
- Steeltoe.Configuration.ConfigServer.dll
Extension methods for adding services related to Spring Cloud Config Server.
public static class ConfigServerServiceCollectionExtensions
- Inheritance
-
ConfigServerServiceCollectionExtensions
- Inherited Members
Methods
AddConfigServerHealthContributor(IServiceCollection)
Adds the Steeltoe.Configuration.ConfigServer.ConfigServerHealthContributor as a IHealthContributor to the service container.
public static IServiceCollection AddConfigServerHealthContributor(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.
AddConfigServerServices(IServiceCollection)
Configures ConfigServerClientOptions, hosted service and health contributor, and ensures IConfigurationRoot is available.
public static IServiceCollection AddConfigServerServices(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.
AddConfigServerServices(IServiceCollection, Action<ConfigServerClientOptions>?)
Configures ConfigServerClientOptions, hosted service and health contributor, and ensures IConfigurationRoot is available.
public static IServiceCollection AddConfigServerServices(this IServiceCollection services, Action<ConfigServerClientOptions>? configure)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
configureAction<ConfigServerClientOptions>An optional delegate that further configures options from code, after settings from IConfiguration have been applied.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.
ConfigureConfigServerClientOptions(IServiceCollection)
Adds ConfigServerClientOptions for use with the options pattern.
public static IServiceCollection ConfigureConfigServerClientOptions(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.
ConfigureConfigServerClientOptions(IServiceCollection, Action<ConfigServerClientOptions>?)
Adds ConfigServerClientOptions for use with the options pattern.
public static IServiceCollection ConfigureConfigServerClientOptions(this IServiceCollection services, Action<ConfigServerClientOptions>? configure)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
configureAction<ConfigServerClientOptions>An optional delegate that further configures options from code, after settings from IConfiguration have been applied.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.