Skip to content

Commit

Permalink
fix method name and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ZUOXIANGE committed Sep 22, 2024
1 parent 32a6870 commit dd72828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/App3/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
o.RefreshPeriod = TimeSpan.FromSeconds(60);
})
.AddConfigurationServiceEndpointProvider()
.AddNacosSrvServiceEndpointProvider();
.AddNacosServiceEndpointProvider();

builder.Services.ConfigureHttpClientDefaults(static http =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ namespace Microsoft.Extensions.Hosting;

public static class NacosServiceDiscoveryExtensions
{
public static IServiceCollection AddNacosSrvServiceEndpointProvider(this IServiceCollection services)
/// <summary>
/// Configures a service discovery endpoint provider which uses <see cref="T:Nacos.V2.INacosNamingService" /> to resolve endpoints.
/// </summary>
/// <param name="services">The service collection.</param>
/// <returns>The service collection.</returns>
public static IServiceCollection AddNacosServiceEndpointProvider(this IServiceCollection services)
{
ArgumentNullException.ThrowIfNull(services);

Expand Down

0 comments on commit dd72828

Please sign in to comment.