-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Update Program.cs #36103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Program.cs #36103
Conversation
I think most of the other top-level programs call `Run()` instead of `await RunAsync()`. For the sake of consistency we should probably use `Run`.
Do we know if there was a specific reason the worker template called |
Hi @DamianEdwards - I'm the one who originally proposed the There was no other reason than my personal preferences and the original PR. For the purpose of consistency however, I think we should use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @IEvangelist!
@rafikiassumanimsft do you want to sign-off on this too as I believe your team owns the worker template?
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
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: - dotnet#33853
I think most of the other top-level programs/templates call
Run()
instead ofawait RunAsync()
. For the sake of consistency we should probably useRun
.Related to the evolution of templates with .NET 6:
/cc @DamianEdwards @bradygaster @davidfowl and @shirhatti