From 44d96f102a40e066580cc9c4490c165b78154e89 Mon Sep 17 00:00:00 2001 From: Stuart Lang Date: Fri, 1 Apr 2022 13:00:11 +0100 Subject: [PATCH] Extra formatting in README --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 332c07b..2fb09c1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ An implementation of the Strangler Fig pattern for ASP.NET Core ### Amend the web.config to load the handlers -``` +```xml @@ -44,7 +44,7 @@ app.UseCookieAuthentication(new CookieAuthenticationOptions ### Disable MVC routing for the new handlers -``` +```c# public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); @@ -72,7 +72,7 @@ public static void RegisterRoutes(RouteCollection routes) For authentication and session to work the names Cocoon uses between the applications must be aligned. In the new application look at the appSettings files. -``` +```json "Cocoon": { "Proxy": { "DestinationPrefix": "https://localhost:44302/" @@ -98,13 +98,13 @@ For authentication and session to work the names Cocoon uses between the applica The cookie names need to match the names in the application that's being facaded. They can normally be found in the web.config -``` +```xml ``` -``` +```xml @@ -131,7 +131,6 @@ If you want to build the images individually you can run the following from the docker build -t cocoon/blazorapp:latest -f samples/BlazorCocoon/Dockerfile . docker build -t cocoon/mvccore:latest -f samples/mvccocoon/src/mvccocoon/Dockerfile . docker build -t cocoon/blazorserver:latest -f samples/BlazorServerCocoon/src/BlazorServerCocoon/Dockerfile . - ``` This is much quicker if you're amending individual applications. @@ -151,4 +150,4 @@ dotnet tool install --global Microsoft.Playwright.CLI playwright install ``` -You can now run the tests inside the test/integration folder. \ No newline at end of file +You can now run the tests inside the test/integration folder.