Class ConfigServerServiceCollectionExtensions
Extension methods for adding services related to Spring Cloud Config Server.
Inheritance
System.Object
ConfigServerServiceCollectionExtensions
Namespace: Steeltoe.Extensions.Configuration.ConfigServer
Assembly: Steeltoe.Extensions.Configuration.ConfigServerCore.dll
Syntax
public static class ConfigServerServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddConfigServerHealthContributor(IServiceCollection)
Add the ConfigServerHealthContributor as a IHealthContributor to the service container.
Declaration
public static IServiceCollection AddConfigServerHealthContributor(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | the service container |
Returns
Type | Description |
---|---|
IServiceCollection | the service collection |
AddConfiguration(IServiceCollection, IConfiguration)
Declaration
public static IServiceCollection AddConfiguration(this IServiceCollection services, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | |
IConfiguration | config |
Returns
Type | Description |
---|---|
IServiceCollection |
ConfigureConfigServerClientOptions(IServiceCollection, IConfiguration)
Declaration
public static IServiceCollection ConfigureConfigServerClientOptions(this IServiceCollection services, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | |
IConfiguration | config |
Returns
Type | Description |
---|---|
IServiceCollection |