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 +} 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 +} 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"]