mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-08-04 20:52:27 +08:00
Removed unused usings, removed empty spaces, removed tons os warnings (#903)
This commit is contained in:
@ -1,19 +1,18 @@
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using Ocelot.Requester;
|
||||
using Ocelot.Requester;
|
||||
|
||||
namespace Ocelot.ManualTest
|
||||
{
|
||||
using System.IO;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Ocelot.DependencyInjection;
|
||||
using Ocelot.Middleware;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
public class Program
|
||||
{
|
||||
@ -31,27 +30,28 @@ namespace Ocelot.ManualTest
|
||||
.AddJsonFile("ocelot.json", false, false)
|
||||
.AddEnvironmentVariables();
|
||||
})
|
||||
.ConfigureServices(s => {
|
||||
s.AddAuthentication()
|
||||
.AddJwtBearer("TestKey", x =>
|
||||
{
|
||||
x.Authority = "test";
|
||||
x.Audience = "test";
|
||||
});
|
||||
.ConfigureServices(s =>
|
||||
{
|
||||
s.AddAuthentication()
|
||||
.AddJwtBearer("TestKey", x =>
|
||||
{
|
||||
x.Authority = "test";
|
||||
x.Audience = "test";
|
||||
});
|
||||
|
||||
s.AddSingleton<QosDelegatingHandlerDelegate>((x, t) => new FakeHandler());
|
||||
s.AddOcelot()
|
||||
.AddDelegatingHandler<FakeHandler>(true);
|
||||
// .AddCacheManager(x =>
|
||||
// {
|
||||
// x.WithDictionaryHandle();
|
||||
// })
|
||||
// .AddOpenTracing(option =>
|
||||
// {
|
||||
// option.CollectorUrl = "http://localhost:9618";
|
||||
// option.Service = "Ocelot.ManualTest";
|
||||
// })
|
||||
// .AddAdministration("/administration", "secret");
|
||||
s.AddSingleton<QosDelegatingHandlerDelegate>((x, t) => new FakeHandler());
|
||||
s.AddOcelot()
|
||||
.AddDelegatingHandler<FakeHandler>(true);
|
||||
// .AddCacheManager(x =>
|
||||
// {
|
||||
// x.WithDictionaryHandle();
|
||||
// })
|
||||
// .AddOpenTracing(option =>
|
||||
// {
|
||||
// option.CollectorUrl = "http://localhost:9618";
|
||||
// option.Service = "Ocelot.ManualTest";
|
||||
// })
|
||||
// .AddAdministration("/administration", "secret");
|
||||
})
|
||||
.ConfigureLogging((hostingContext, logging) =>
|
||||
{
|
||||
@ -64,7 +64,7 @@ namespace Ocelot.ManualTest
|
||||
app.UseOcelot().Wait();
|
||||
})
|
||||
.Build()
|
||||
.Run();
|
||||
.Run();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user