diff --git a/samples/MicroserviceDemo/MicroserviceDemo.sln b/samples/MicroserviceDemo/MicroserviceDemo.sln
index fb567f550b..30bb015d8a 100644
--- a/samples/MicroserviceDemo/MicroserviceDemo.sln
+++ b/samples/MicroserviceDemo/MicroserviceDemo.sln
@@ -67,6 +67,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "blogging", "blogging", "{20
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BloggingService.Host", "microservices\blogging\BloggingService.Host\BloggingService.Host.csproj", "{61533609-BFF9-4B12-AB33-470FD65E326F}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "gateways", "gateways", "{617037ED-34E3-49A2-8958-BE2013E2D151}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PublicWebSiteGateway.Host", "gateways\PublicWebSiteGateway.Host\PublicWebSiteGateway.Host.csproj", "{D48F6DDC-4AFC-4554-86B1-7763C0679B59}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BackendAdminAppGateway", "gateways\BackendAdminAppGateway\BackendAdminAppGateway.csproj", "{E59141DB-9DDC-433E-B442-ABE63BF4724A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InternalGateway", "gateways\InternalGateway\InternalGateway.csproj", "{92A2EAAE-CC45-420F-9853-F8F2F0D9C32E}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -149,6 +157,18 @@ Global
{61533609-BFF9-4B12-AB33-470FD65E326F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{61533609-BFF9-4B12-AB33-470FD65E326F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{61533609-BFF9-4B12-AB33-470FD65E326F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D48F6DDC-4AFC-4554-86B1-7763C0679B59}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E59141DB-9DDC-433E-B442-ABE63BF4724A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E59141DB-9DDC-433E-B442-ABE63BF4724A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E59141DB-9DDC-433E-B442-ABE63BF4724A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E59141DB-9DDC-433E-B442-ABE63BF4724A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {92A2EAAE-CC45-420F-9853-F8F2F0D9C32E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {92A2EAAE-CC45-420F-9853-F8F2F0D9C32E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {92A2EAAE-CC45-420F-9853-F8F2F0D9C32E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {92A2EAAE-CC45-420F-9853-F8F2F0D9C32E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -183,6 +203,9 @@ Global
{BBB502EC-0E3B-4C21-B8E6-59BFFBAC2055} = {76FA3B92-7837-4F04-B9E5-A13900F7DDA9}
{203B8EC3-87FD-4F9A-8C56-294E5386F2B8} = {3B26D176-390B-4F51-BE52-E9B422C28A88}
{61533609-BFF9-4B12-AB33-470FD65E326F} = {203B8EC3-87FD-4F9A-8C56-294E5386F2B8}
+ {D48F6DDC-4AFC-4554-86B1-7763C0679B59} = {617037ED-34E3-49A2-8958-BE2013E2D151}
+ {E59141DB-9DDC-433E-B442-ABE63BF4724A} = {617037ED-34E3-49A2-8958-BE2013E2D151}
+ {92A2EAAE-CC45-420F-9853-F8F2F0D9C32E} = {617037ED-34E3-49A2-8958-BE2013E2D151}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {37474F0D-2E52-4D2F-B39B-7FE3FF31B4EC}
diff --git a/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/BackendAdminAppGateway.csproj b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/BackendAdminAppGateway.csproj
new file mode 100644
index 0000000000..423afacffc
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/BackendAdminAppGateway.csproj
@@ -0,0 +1,13 @@
+
+
+
+ netcoreapp2.2
+ InProcess
+
+
+
+
+
+
+
+
diff --git a/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Program.cs b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Program.cs
new file mode 100644
index 0000000000..4b91bf5d39
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Program.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Logging;
+
+namespace BackendAdminAppGateway
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateWebHostBuilder(args).Build().Run();
+ }
+
+ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
+ WebHost.CreateDefaultBuilder(args)
+ .UseStartup();
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Properties/launchSettings.json b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Properties/launchSettings.json
new file mode 100644
index 0000000000..78dd5a43f7
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Properties/launchSettings.json
@@ -0,0 +1,27 @@
+{
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:64909",
+ "sslPort": 0
+ }
+ },
+ "profiles": {
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "BackendAdminAppGateway": {
+ "commandName": "Project",
+ "launchBrowser": true,
+ "applicationUrl": "http://localhost:5000",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Startup.cs b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Startup.cs
new file mode 100644
index 0000000000..a307622dca
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/Startup.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Http;
+using Microsoft.Extensions.DependencyInjection;
+
+namespace BackendAdminAppGateway
+{
+ public class Startup
+ {
+ // This method gets called by the runtime. Use this method to add services to the container.
+ // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
+ public void ConfigureServices(IServiceCollection services)
+ {
+ }
+
+ // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
+ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
+ {
+ if (env.IsDevelopment())
+ {
+ app.UseDeveloperExceptionPage();
+ }
+
+ app.Run(async (context) =>
+ {
+ await context.Response.WriteAsync("Hello World!");
+ });
+ }
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/appsettings.Development.json b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/appsettings.Development.json
new file mode 100644
index 0000000000..e203e9407e
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ }
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/appsettings.json b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/appsettings.json
new file mode 100644
index 0000000000..def9159a7d
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/BackendAdminAppGateway/appsettings.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/samples/MicroserviceDemo/gateways/InternalGateway/InternalGateway.csproj b/samples/MicroserviceDemo/gateways/InternalGateway/InternalGateway.csproj
new file mode 100644
index 0000000000..423afacffc
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/InternalGateway/InternalGateway.csproj
@@ -0,0 +1,13 @@
+
+
+
+ netcoreapp2.2
+ InProcess
+
+
+
+
+
+
+
+
diff --git a/samples/MicroserviceDemo/gateways/InternalGateway/Program.cs b/samples/MicroserviceDemo/gateways/InternalGateway/Program.cs
new file mode 100644
index 0000000000..697f8f6128
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/InternalGateway/Program.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Logging;
+
+namespace InternalGateway
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateWebHostBuilder(args).Build().Run();
+ }
+
+ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
+ WebHost.CreateDefaultBuilder(args)
+ .UseStartup();
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/InternalGateway/Properties/launchSettings.json b/samples/MicroserviceDemo/gateways/InternalGateway/Properties/launchSettings.json
new file mode 100644
index 0000000000..abc04a8f28
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/InternalGateway/Properties/launchSettings.json
@@ -0,0 +1,27 @@
+{
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:65042",
+ "sslPort": 0
+ }
+ },
+ "profiles": {
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "InternalGateway": {
+ "commandName": "Project",
+ "launchBrowser": true,
+ "applicationUrl": "http://localhost:5000",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/gateways/InternalGateway/Startup.cs b/samples/MicroserviceDemo/gateways/InternalGateway/Startup.cs
new file mode 100644
index 0000000000..65e4e70f40
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/InternalGateway/Startup.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Http;
+using Microsoft.Extensions.DependencyInjection;
+
+namespace InternalGateway
+{
+ public class Startup
+ {
+ // This method gets called by the runtime. Use this method to add services to the container.
+ // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
+ public void ConfigureServices(IServiceCollection services)
+ {
+ }
+
+ // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
+ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
+ {
+ if (env.IsDevelopment())
+ {
+ app.UseDeveloperExceptionPage();
+ }
+
+ app.Run(async (context) =>
+ {
+ await context.Response.WriteAsync("Hello World!");
+ });
+ }
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/InternalGateway/appsettings.Development.json b/samples/MicroserviceDemo/gateways/InternalGateway/appsettings.Development.json
new file mode 100644
index 0000000000..e203e9407e
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/InternalGateway/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ }
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/InternalGateway/appsettings.json b/samples/MicroserviceDemo/gateways/InternalGateway/appsettings.json
new file mode 100644
index 0000000000..def9159a7d
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/InternalGateway/appsettings.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Program.cs b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Program.cs
new file mode 100644
index 0000000000..2ea896608c
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Program.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Logging;
+
+namespace PublicWebSiteGateway.Host
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateWebHostBuilder(args).Build().Run();
+ }
+
+ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
+ WebHost.CreateDefaultBuilder(args)
+ .UseStartup();
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Properties/launchSettings.json b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Properties/launchSettings.json
new file mode 100644
index 0000000000..fa3d33da52
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Properties/launchSettings.json
@@ -0,0 +1,27 @@
+{
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:64897",
+ "sslPort": 0
+ }
+ },
+ "profiles": {
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "PublicWebSiteGateway.Host": {
+ "commandName": "Project",
+ "launchBrowser": true,
+ "applicationUrl": "http://localhost:5000",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/PublicWebSiteGateway.Host.csproj b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/PublicWebSiteGateway.Host.csproj
new file mode 100644
index 0000000000..423afacffc
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/PublicWebSiteGateway.Host.csproj
@@ -0,0 +1,13 @@
+
+
+
+ netcoreapp2.2
+ InProcess
+
+
+
+
+
+
+
+
diff --git a/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Startup.cs b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Startup.cs
new file mode 100644
index 0000000000..9baf439827
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/Startup.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Http;
+using Microsoft.Extensions.DependencyInjection;
+
+namespace PublicWebSiteGateway.Host
+{
+ public class Startup
+ {
+ // This method gets called by the runtime. Use this method to add services to the container.
+ // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
+ public void ConfigureServices(IServiceCollection services)
+ {
+ }
+
+ // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
+ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
+ {
+ if (env.IsDevelopment())
+ {
+ app.UseDeveloperExceptionPage();
+ }
+
+ app.Run(async (context) =>
+ {
+ await context.Response.WriteAsync("Hello World!");
+ });
+ }
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/appsettings.Development.json b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/appsettings.Development.json
new file mode 100644
index 0000000000..e203e9407e
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ }
+ }
+}
diff --git a/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/appsettings.json b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/appsettings.json
new file mode 100644
index 0000000000..def9159a7d
--- /dev/null
+++ b/samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/appsettings.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}