mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-11-03 06:55:26 +08:00
remove duplicate IHttpRequester register (#819)
* remove duplicate `IHttpRequester` register * reserve the first
This commit is contained in:
committed by
Thiago Loureiro
parent
cb3989a714
commit
e281f1b3fb
@@ -107,7 +107,6 @@ namespace Ocelot.DependencyInjection
|
||||
Services.TryAddSingleton<IHttpHandlerOptionsCreator, HttpHandlerOptionsCreator>();
|
||||
Services.TryAddSingleton<IDownstreamAddressesCreator, DownstreamAddressesCreator>();
|
||||
Services.TryAddSingleton<IDelegatingHandlerHandlerFactory, DelegatingHandlerHandlerFactory>();
|
||||
Services.TryAddSingleton<IHttpRequester, HttpClientHttpRequester>();
|
||||
|
||||
// see this for why we register this as singleton http://stackoverflow.com/questions/37371264/invalidoperationexception-unable-to-resolve-service-for-type-microsoft-aspnetc
|
||||
// could maybe use a scoped data repository
|
||||
|
||||
Reference in New Issue
Block a user