From c3aa39d6d32e819dc05fd05dd86db7d84c8058e5 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Tue, 5 Oct 2021 15:57:11 +0300 Subject: [PATCH] Added OcelotConfiguration file --- .../OcelotConfiguration.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 shared/EShopOnAbp.Shared.Hosting.Gateways/OcelotConfiguration.cs diff --git a/shared/EShopOnAbp.Shared.Hosting.Gateways/OcelotConfiguration.cs b/shared/EShopOnAbp.Shared.Hosting.Gateways/OcelotConfiguration.cs new file mode 100644 index 00000000..12b69886 --- /dev/null +++ b/shared/EShopOnAbp.Shared.Hosting.Gateways/OcelotConfiguration.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; + +namespace EShopOnAbp.Shared.Hosting.Gateways +{ + public class OcelotConfiguration + { + public string ServiceName { get; set; } + public string DownstreamPathTemplate { get; set; } + public string DownstreamScheme { get; set; } + public string UpstreamPathTemplate { get; set; } + public List UpstreamHttpMethod { get; set; } + public List DownstreamHostAndPorts { get; set; } + } + + public class HostAndPort + { + public string Host { get; set; } + public int Port { get; set; } + } +} \ No newline at end of file