From ee5839b74549490b2c1afadc728af9e51ae29855 Mon Sep 17 00:00:00 2001 From: xela30 Date: Sun, 27 Aug 2017 18:42:54 +0300 Subject: [PATCH 1/3] Update sample8.cs (#4123) --- .../samples/sample8.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnet/web-forms/overview/performance-and-caching/using-asynchronous-methods-in-aspnet-45/samples/sample8.cs b/aspnet/web-forms/overview/performance-and-caching/using-asynchronous-methods-in-aspnet-45/samples/sample8.cs index 217de9c8cc..0fca498d0e 100644 --- a/aspnet/web-forms/overview/performance-and-caching/using-asynchronous-methods-in-aspnet-45/samples/sample8.cs +++ b/aspnet/web-forms/overview/performance-and-caching/using-asynchronous-methods-in-aspnet-45/samples/sample8.cs @@ -1,4 +1,4 @@ -protected void Page_Load(object sender, EventArgs e) { +protected async void Page_Load(object sender, EventArgs e) { await ...; // do work -} \ No newline at end of file +} From c1864459411943b446c5ae72ad8b4d8988c6eb63 Mon Sep 17 00:00:00 2001 From: Gareth Matthews Date: Sun, 27 Aug 2017 16:44:00 +0100 Subject: [PATCH 2/3] Namespace fix (#4122) --- aspnetcore/getting-started/sample/aspnetcoreapp/Program2x.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/getting-started/sample/aspnetcoreapp/Program2x.cs b/aspnetcore/getting-started/sample/aspnetcoreapp/Program2x.cs index 9790277b3a..e0c39ff9e3 100644 --- a/aspnetcore/getting-started/sample/aspnetcoreapp/Program2x.cs +++ b/aspnetcore/getting-started/sample/aspnetcoreapp/Program2x.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; -namespace WebApplication5 +namespace aspnetcoreapp { public class Program { @@ -15,4 +15,4 @@ namespace WebApplication5 .UseStartup() .Build(); } -} \ No newline at end of file +} From 3273675dad5ac3e1dc1c589938b73db3f7d6660a Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Mon, 28 Aug 2017 01:43:49 -0400 Subject: [PATCH 3/3] Update first-web-api-mac.md --- aspnetcore/tutorials/first-web-api-mac.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/first-web-api-mac.md b/aspnetcore/tutorials/first-web-api-mac.md index eb5b4a5fa3..5178b12207 100644 --- a/aspnetcore/tutorials/first-web-api-mac.md +++ b/aspnetcore/tutorials/first-web-api-mac.md @@ -54,7 +54,7 @@ Enter **TodoApi** for the **Project Name**, and then select Create. ### Launch the app -In Visual Studio, select **Run > Start With Debugging** to launch the app. Visual Studio launches a browser and navigates to `http://localhost:port`, where *port* is a randomly chosen port number. You get an HTTP 404 (Not Found) error. Change the URL to `http://localhost:port/api/values`. The `ValuesController` data will be displayed: +In Visual Studio, select **Run > Start With Debugging** to launch the app. Visual Studio launches a browser and navigates to `http://localhost:5000`. You get an HTTP 404 (Not Found) error. Change the URL to `http://localhost:port/api/values`. The `ValuesController` data will be displayed: ``` ["value1","value2"]