diff options
author | David Pine <david.pine@microsoft.com> | 2022-01-21 22:38:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 22:38:56 +0300 |
commit | 85ac505b0a500acf5246fe48fe7e8eb400511c9d (patch) | |
tree | 5fbc71b8acfe54e8201d8035ec068ada8c6de7a1 /src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp | |
parent | 8b93d9e6ebc3ef776ff48769e5bb12ec4c06b5e5 (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.cs | 2 |
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(); |