From 9983cdee93ea5930500e6d81d8712c0de7114413 Mon Sep 17 00:00:00 2001 From: "W.Bhaggan" Date: Sun, 11 Aug 2019 20:53:46 -0500 Subject: [PATCH 1/2] Correction --- .../modern-web-apps-azure/develop-asp-net-core-mvc-apps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md b/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md index 94c2d867296c7..84f6709d4903a 100644 --- a/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md +++ b/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md @@ -37,7 +37,7 @@ At its heart, ASP.NET Core apps map incoming requests to outgoing responses. At ASP.NET Core MVC apps can use conventional routes, attribute routes, or both. Conventional routes are defined in code, specifying routing _conventions_ using syntax like in the example below: ```csharp -app.UseMvc(routes =>; +app.UseMvc(routes => { routes.MapRoute("default","{controller=Home}/{action=Index}/{id?}"); }); From a9d3d1916d016b591618afa6e42bf30c4c40ea02 Mon Sep 17 00:00:00 2001 From: "W.Bhaggan" Date: Sun, 25 Aug 2019 02:27:09 -0500 Subject: [PATCH 2/2] Compiler Errors removed --- .../modern-web-apps-azure/develop-asp-net-core-mvc-apps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md b/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md index 84f6709d4903a..750c4e6a36522 100644 --- a/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md +++ b/docs/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps.md @@ -202,7 +202,7 @@ In addition to the built-in support for Areas, you can also use your own folder ASP.NET Core uses built-in convention types to control its behavior. You can modify or replace these conventions. For example, you can create a convention that will automatically get the feature name for a given controller based on its namespace (which typically correlates to the folder in which the controller is located): ```csharp -FeatureConvention : IControllerModelConvention +public class FeatureConvention : IControllerModelConvention { public void Apply(ControllerModel controller) { @@ -468,7 +468,7 @@ public class Program public static void Main(string[] args) { StartConnectionAsync(); - _connection.On("receiveMessage", (arguments) =>; + _connection.On("receiveMessage", (arguments) => { Console.WriteLine(\$"{arguments\[0\]} said: {arguments\[1\]}"); });