├── .gitignore ├── GoodApi ├── Controllers │ ├── GoodController.cs │ ├── HealthController.cs │ └── ValuesController.cs ├── GoodApi.csproj ├── Program.cs ├── Startup.cs ├── appsettings.Development.json └── appsettings.json ├── LICENSE ├── Ocelot.ConfigAuthLimitCache ├── Configuration │ ├── ConfigAuthLimitCacheOptions.cs │ └── DataBaseMiddlewareConfigurationProvider.cs ├── Core │ └── ErrorResult.cs ├── DependencyInjection │ └── ServiceCollectionExtensions.cs ├── Extensions │ └── JsonExtensions.cs ├── Middleware │ ├── AhphResponderMiddleware.cs │ ├── AhphResponderMiddlewareExtensions.cs │ ├── OcelotMiddlewareExtensions.cs │ └── OcelotPipelineExtensions.cs ├── Models │ ├── OcelotGlobalConfiguration.cs │ └── OcelotReRoutes.cs ├── Ocelot.ConfigAuthLimitCache.csproj └── Repository │ └── SqlServerFileConfigurationRepository.cs ├── OcelotDemo.Auth ├── ApiConfig.cs ├── Controllers │ └── ValuesController.cs ├── OcelotDemo.Auth.csproj ├── Program.cs ├── Startup.cs ├── appsettings.Development.json ├── appsettings.json └── tempkey.rsa ├── OcelotDemo.Models ├── Goods.cs ├── OcelotDemo.Models.csproj └── Orders.cs ├── OcelotDemo.sln ├── OcelotDemo ├── Controllers │ └── ValuesController.cs ├── IdentityServerOptions.cs ├── Ocelot.json ├── OcelotDemo.csproj ├── Program.cs ├── Startup.cs ├── appsettings.Development.json └── appsettings.json ├── OrderApi ├── Controllers │ ├── HealthController.cs │ ├── OrderController.cs │ └── ValuesController.cs ├── OrderApi.csproj ├── Program.cs ├── Startup.cs ├── appsettings.Development.json └── appsettings.json └── README.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/.gitignore -------------------------------------------------------------------------------- /GoodApi/Controllers/GoodController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/Controllers/GoodController.cs -------------------------------------------------------------------------------- /GoodApi/Controllers/HealthController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/Controllers/HealthController.cs -------------------------------------------------------------------------------- /GoodApi/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /GoodApi/GoodApi.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/GoodApi.csproj -------------------------------------------------------------------------------- /GoodApi/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/Program.cs -------------------------------------------------------------------------------- /GoodApi/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/Startup.cs -------------------------------------------------------------------------------- /GoodApi/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/appsettings.Development.json -------------------------------------------------------------------------------- /GoodApi/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/GoodApi/appsettings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/LICENSE -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Configuration/ConfigAuthLimitCacheOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Configuration/ConfigAuthLimitCacheOptions.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Configuration/DataBaseMiddlewareConfigurationProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Configuration/DataBaseMiddlewareConfigurationProvider.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Core/ErrorResult.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Core/ErrorResult.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/DependencyInjection/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/DependencyInjection/ServiceCollectionExtensions.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Extensions/JsonExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Extensions/JsonExtensions.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Middleware/AhphResponderMiddleware.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Middleware/AhphResponderMiddleware.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Middleware/AhphResponderMiddlewareExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Middleware/AhphResponderMiddlewareExtensions.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Middleware/OcelotMiddlewareExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Middleware/OcelotMiddlewareExtensions.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Middleware/OcelotPipelineExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Middleware/OcelotPipelineExtensions.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Models/OcelotGlobalConfiguration.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Models/OcelotGlobalConfiguration.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Models/OcelotReRoutes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Models/OcelotReRoutes.cs -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Ocelot.ConfigAuthLimitCache.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Ocelot.ConfigAuthLimitCache.csproj -------------------------------------------------------------------------------- /Ocelot.ConfigAuthLimitCache/Repository/SqlServerFileConfigurationRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/Ocelot.ConfigAuthLimitCache/Repository/SqlServerFileConfigurationRepository.cs -------------------------------------------------------------------------------- /OcelotDemo.Auth/ApiConfig.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/ApiConfig.cs -------------------------------------------------------------------------------- /OcelotDemo.Auth/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /OcelotDemo.Auth/OcelotDemo.Auth.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/OcelotDemo.Auth.csproj -------------------------------------------------------------------------------- /OcelotDemo.Auth/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/Program.cs -------------------------------------------------------------------------------- /OcelotDemo.Auth/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/Startup.cs -------------------------------------------------------------------------------- /OcelotDemo.Auth/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/appsettings.Development.json -------------------------------------------------------------------------------- /OcelotDemo.Auth/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/appsettings.json -------------------------------------------------------------------------------- /OcelotDemo.Auth/tempkey.rsa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Auth/tempkey.rsa -------------------------------------------------------------------------------- /OcelotDemo.Models/Goods.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Models/Goods.cs -------------------------------------------------------------------------------- /OcelotDemo.Models/OcelotDemo.Models.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Models/OcelotDemo.Models.csproj -------------------------------------------------------------------------------- /OcelotDemo.Models/Orders.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.Models/Orders.cs -------------------------------------------------------------------------------- /OcelotDemo.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo.sln -------------------------------------------------------------------------------- /OcelotDemo/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /OcelotDemo/IdentityServerOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/IdentityServerOptions.cs -------------------------------------------------------------------------------- /OcelotDemo/Ocelot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/Ocelot.json -------------------------------------------------------------------------------- /OcelotDemo/OcelotDemo.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/OcelotDemo.csproj -------------------------------------------------------------------------------- /OcelotDemo/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/Program.cs -------------------------------------------------------------------------------- /OcelotDemo/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/Startup.cs -------------------------------------------------------------------------------- /OcelotDemo/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/appsettings.Development.json -------------------------------------------------------------------------------- /OcelotDemo/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OcelotDemo/appsettings.json -------------------------------------------------------------------------------- /OrderApi/Controllers/HealthController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/Controllers/HealthController.cs -------------------------------------------------------------------------------- /OrderApi/Controllers/OrderController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/Controllers/OrderController.cs -------------------------------------------------------------------------------- /OrderApi/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /OrderApi/OrderApi.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/OrderApi.csproj -------------------------------------------------------------------------------- /OrderApi/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/Program.cs -------------------------------------------------------------------------------- /OrderApi/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/Startup.cs -------------------------------------------------------------------------------- /OrderApi/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/appsettings.Development.json -------------------------------------------------------------------------------- /OrderApi/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/OrderApi/appsettings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilezhu/OcelotDemo/HEAD/README.md --------------------------------------------------------------------------------