additional documentation
This commit is contained in:
parent
ce14b9e43e
commit
8a696f6c52
|
@ -247,6 +247,7 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
});
|
||||
}
|
||||
|
||||
// register a named IHttpClientFactory
|
||||
services.AddHttpClient("oqtane", (provider, client) =>
|
||||
{
|
||||
var httpContextAccessor = provider.GetRequiredService<IHttpContextAccessor>();
|
||||
|
@ -261,7 +262,7 @@ namespace Microsoft.Extensions.DependencyInjection
|
|||
}
|
||||
});
|
||||
|
||||
// IHttpClientFactory for calling remote services via RemoteServiceBase
|
||||
// IHttpClientFactory for calling remote services via RemoteServiceBase (not named = default)
|
||||
services.AddHttpClient();
|
||||
|
||||
return services;
|
||||
|
|
Loading…
Reference in New Issue
Block a user