mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
moved json converters under authentication feature
This commit is contained in:
parent
50ee9e20d8
commit
58dc7c93bc
@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
using Ocelot.Configuration;
|
using Ocelot.Configuration;
|
||||||
|
|
||||||
namespace Ocelot.AcceptanceTests
|
namespace Ocelot.Authentication.JsonConverters
|
||||||
{
|
{
|
||||||
using Newtonsoft.Json.Linq;
|
|
||||||
public class AuthenticationConfigConverter : JsonConverter
|
public class AuthenticationConfigConverter : JsonConverter
|
||||||
{
|
{
|
||||||
public override bool CanWrite => false;
|
public override bool CanWrite => false;
|
@ -4,13 +4,12 @@ using System.Threading.Tasks;
|
|||||||
using Consul;
|
using Consul;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
using Ocelot.Authentication.JsonConverters;
|
||||||
using Ocelot.Responses;
|
using Ocelot.Responses;
|
||||||
using Ocelot.ServiceDiscovery;
|
using Ocelot.ServiceDiscovery;
|
||||||
|
|
||||||
namespace Ocelot.Configuration.Repository
|
namespace Ocelot.Configuration.Repository
|
||||||
{
|
{
|
||||||
using Ocelot.AcceptanceTests;
|
|
||||||
|
|
||||||
public class ConsulOcelotConfigurationRepository : IOcelotConfigurationRepository
|
public class ConsulOcelotConfigurationRepository : IOcelotConfigurationRepository
|
||||||
{
|
{
|
||||||
private readonly ConsulClient _consul;
|
private readonly ConsulClient _consul;
|
||||||
|
@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Builder;
|
|||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Ocelot.Authentication.JsonConverters;
|
||||||
using Ocelot.Configuration;
|
using Ocelot.Configuration;
|
||||||
using Ocelot.Configuration.File;
|
using Ocelot.Configuration.File;
|
||||||
using Ocelot.Configuration.Repository;
|
using Ocelot.Configuration.Repository;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user