Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Pine <david.pine@microsoft.com>2022-01-21 22:38:56 +0300
committerGitHub <noreply@github.com>2022-01-21 22:38:56 +0300
commit85ac505b0a500acf5246fe48fe7e8eb400511c9d (patch)
tree5fbc71b8acfe54e8201d8035ec068ada8c6de7a1 /src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp
parent8b93d9e6ebc3ef776ff48769e5bb12ec4c06b5e5 (diff)
Update Program.cs (#36103)
I think most of the other top-level programs/templates call `Run()` instead of `await RunAsync()`. For the sake of consistency we should probably use `Run`. Related to the evolution of templates with .NET 6: - #33853
Diffstat (limited to 'src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp')
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs
index 52f7e3e88e..17839cdd84 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs
@@ -7,4 +7,4 @@ IHost host = Host.CreateDefaultBuilder(args)
})
.Build();
-await host.RunAsync();
+host.Run();