From d439ff2fb1469ac22591905ccfa34f72a95f0f81 Mon Sep 17 00:00:00 2001 From: Brent Jacobs Date: Wed, 12 Oct 2022 13:33:16 +1030 Subject: [PATCH 1/3] #226: Fix code example for session serialization in core.md --- docs/core.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core.md b/docs/core.md index 3853e52107..b8d986d7e0 100644 --- a/docs/core.md +++ b/docs/core.md @@ -10,7 +10,7 @@ var builder = WebApplication.CreateBuilder(); // Add services to the container. builder.Services.AddControllersWithViews(); builder.Services.AddSystemWebAdapters() - .AddJsonSessionKeySerializer(options => ClassLibrary.SessionUtils.RegisterSessionKeys(options)) + .AddJsonSessionSerializer(options => ClassLibrary.SessionUtils.RegisterSessionKeys(options)) .AddRemoteAppClient(options => { options.RemoteAppUrl = new(builder.Configuration["ReverseProxy:Clusters:fallbackCluster:Destinations:fallbackApp:Address"]); From 31b9da9f56a431c06cae4dc893c80031800d7e66 Mon Sep 17 00:00:00 2001 From: Brent Jacobs Date: Wed, 12 Oct 2022 13:33:52 +1030 Subject: [PATCH 2/3] Fix Configuration access in code example in core.md --- docs/core.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core.md b/docs/core.md index b8d986d7e0..fde63fed0b 100644 --- a/docs/core.md +++ b/docs/core.md @@ -14,7 +14,7 @@ builder.Services.AddSystemWebAdapters() .AddRemoteAppClient(options => { options.RemoteAppUrl = new(builder.Configuration["ReverseProxy:Clusters:fallbackCluster:Destinations:fallbackApp:Address"]); - options.ApiKey = builder.Configuration("RemoteAppApiKey"); + options.ApiKey = builder.Configuration["RemoteAppApiKey"]; }) .AddSessionClient(); From 45c0fc649e272f3857a55a1b0c90088add1fdb34 Mon Sep 17 00:00:00 2001 From: Brent Jacobs Date: Wed, 12 Oct 2022 14:44:17 +1030 Subject: [PATCH 3/3] Add required reverse-proxy configuration to core.md --- docs/core.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/core.md b/docs/core.md index fde63fed0b..fa54d7463b 100644 --- a/docs/core.md +++ b/docs/core.md @@ -18,6 +18,8 @@ builder.Services.AddSystemWebAdapters() }) .AddSessionClient(); +builder.Services.AddReverseProxy().LoadFromConfig(builder.Configuration.GetSection("ReverseProxy")); + var app = builder.Build(); // Configure the HTTP request pipeline.