ServiceDiscoveryServiceCollectionExtensions.AddServiceDiscoveryCore 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
AddServiceDiscoveryCore(IServiceCollection) |
Adds the core service discovery services. |
AddServiceDiscoveryCore(IServiceCollection, Action<ServiceDiscoveryOptions>) |
Adds the core service discovery services. |
AddServiceDiscoveryCore(IServiceCollection)
Adds the core service discovery services.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceDiscoveryCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddServiceDiscoveryCore : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceDiscoveryCore (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The service collection.
Returns
The service collection.
Applies to
AddServiceDiscoveryCore(IServiceCollection, Action<ServiceDiscoveryOptions>)
Adds the core service discovery services.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceDiscoveryCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.ServiceDiscovery.ServiceDiscoveryOptions> configureOptions);
static member AddServiceDiscoveryCore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.ServiceDiscovery.ServiceDiscoveryOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceDiscoveryCore (services As IServiceCollection, configureOptions As Action(Of ServiceDiscoveryOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
The service collection.
- configureOptions
- Action<ServiceDiscoveryOptions>
The delegate used to configure service discovery options.
Returns
The service collection.