Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/core/extensions/service-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ The configuration resolver is configured using the <xref:Microsoft.Extensions.Se

- **ApplyHostNameMetadata**: A delegate used to determine if host name metadata should be applied to resolved endpoints. It defaults to a function that returns `false`.

To configure these options, you can use the `Configure` extension method on the `IServiceCollection` within your application's `Startup` class or `Program` file:
To configure these options, you can call the <xref:Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions.Configure*> extension method on the `IServiceCollection` within your application's `Startup` class or `Program` file:

```csharp
var builder = WebApplication.CreateBuilder(args);

builder.Services.Configure<ConfigurationServiceEndPointResolverOptions>(
builder.Services.Configure<ConfigurationServiceEndpointProviderOptions>(
static options =>
{
options.SectionName = "MyServiceEndpoints";
Expand Down