mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:42:50 +08:00
Removed Warnings (#838)
This commit is contained in:
parent
bd058c22ca
commit
963f93429a
@ -144,7 +144,6 @@ namespace Ocelot.DependencyInjection
|
|||||||
Services.AddWebEncoders();
|
Services.AddWebEncoders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public IOcelotBuilder AddSingletonDefinedAggregator<T>()
|
public IOcelotBuilder AddSingletonDefinedAggregator<T>()
|
||||||
where T : class, IDefinedAggregator
|
where T : class, IDefinedAggregator
|
||||||
{
|
{
|
||||||
@ -171,7 +170,8 @@ namespace Ocelot.DependencyInjection
|
|||||||
if (global)
|
if (global)
|
||||||
{
|
{
|
||||||
Services.AddTransient<THandler>();
|
Services.AddTransient<THandler>();
|
||||||
Services.AddTransient<GlobalDelegatingHandler>(s =>{
|
Services.AddTransient<GlobalDelegatingHandler>(s =>
|
||||||
|
{
|
||||||
var service = s.GetService<THandler>();
|
var service = s.GetService<THandler>();
|
||||||
return new GlobalDelegatingHandler(service);
|
return new GlobalDelegatingHandler(service);
|
||||||
});
|
});
|
||||||
|
@ -37,7 +37,6 @@ namespace Ocelot.Middleware.Multiplexer
|
|||||||
|
|
||||||
var content = await contexts[0].DownstreamResponse.Content.ReadAsStringAsync();
|
var content = await contexts[0].DownstreamResponse.Content.ReadAsStringAsync();
|
||||||
contentBuilder.Append($"\"{responseKeys[k]}\":{content}");
|
contentBuilder.Append($"\"{responseKeys[k]}\":{content}");
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user