ServiceDiscoveryServiceCollectionExtensions.AddConfigurationServiceEndpointProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddConfigurationServiceEndpointProvider(IServiceCollection) |
Configures a service discovery endpoint provider which uses IConfiguration to resolve endpoints. |
AddConfigurationServiceEndpointProvider(IServiceCollection, Action<ConfigurationServiceEndpointProviderOptions>) |
Configures a service discovery endpoint provider which uses IConfiguration to resolve endpoints. |
AddConfigurationServiceEndpointProvider(IServiceCollection)
Configures a service discovery endpoint provider which uses IConfiguration to resolve endpoints.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConfigurationServiceEndpointProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddConfigurationServiceEndpointProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConfigurationServiceEndpointProvider (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The service collection.
Returns
The service collection.
Applies to
AddConfigurationServiceEndpointProvider(IServiceCollection, Action<ConfigurationServiceEndpointProviderOptions>)
Configures a service discovery endpoint provider which uses IConfiguration to resolve endpoints.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConfigurationServiceEndpointProvider (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.ServiceDiscovery.ConfigurationServiceEndpointProviderOptions> configureOptions);
static member AddConfigurationServiceEndpointProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.ServiceDiscovery.ConfigurationServiceEndpointProviderOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConfigurationServiceEndpointProvider (services As IServiceCollection, configureOptions As Action(Of ConfigurationServiceEndpointProviderOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
The service collection.
- configureOptions
- Action<ConfigurationServiceEndpointProviderOptions>
The delegate used to configure the provider.
Returns
The service collection.