Removed Warnings (#838)

This commit is contained in:
Thiago Loureiro 2019-03-23 22:31:59 +01:00 committed by GitHub
parent bd058c22ca
commit 963f93429a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -144,7 +144,6 @@ namespace Ocelot.DependencyInjection
Services.AddWebEncoders();
}
public IOcelotBuilder AddSingletonDefinedAggregator<T>()
where T : class, IDefinedAggregator
{
@ -171,7 +170,8 @@ namespace Ocelot.DependencyInjection
if (global)
{
Services.AddTransient<THandler>();
Services.AddTransient<GlobalDelegatingHandler>(s =>{
Services.AddTransient<GlobalDelegatingHandler>(s =>
{
var service = s.GetService<THandler>();
return new GlobalDelegatingHandler(service);
});

View File

@ -37,7 +37,6 @@ namespace Ocelot.Middleware.Multiplexer
var content = await contexts[0].DownstreamResponse.Content.ReadAsStringAsync();
contentBuilder.Append($"\"{responseKeys[k]}\":{content}");
}
else
{