Skip to content

Use top level program for the Worker template #33853

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

Merged
merged 2 commits into from
Jul 1, 2021
Merged

Conversation

IEvangelist
Copy link
Member

Reduce the Worker template by half, using top level statements.

/cc @bradygaster and @shirhatti

@IEvangelist IEvangelist requested a review from Pilchie as a code owner June 25, 2021 20:08
@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jun 25, 2021
@bradygaster
Copy link
Member

Timing seemed appropriate with other discussions going on. I'd love to see the Worker as a top-level. I like this.

@shirhatti
Copy link
Contributor

I'd like to see the template further simplified with global usings (like in the websdk).

@JunTaoLuo 👀

@davidfowl
Copy link
Member

I think we want to do this for all of the templates as well.

@IEvangelist IEvangelist enabled auto-merge June 29, 2021 19:29
@shirhatti
Copy link
Contributor

FYI @DamianEdwards since he's updating templates right now. I'm okay merging this as is and letting Damian make any additional changes in his PR

@DamianEdwards
Copy link
Member

DamianEdwards commented Jul 1, 2021

Yep we're in the process of updating all the templates now, see #33947

@IEvangelist IEvangelist deleted the worker-template branch July 1, 2021 21:25
@ghost ghost added this to the 6.0-preview7 milestone Jul 1, 2021
@IEvangelist IEvangelist mentioned this pull request Sep 2, 2021
pranavkm pushed a commit that referenced this pull request Jan 21, 2022
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
ShreyasJejurkar pushed a commit to ShreyasJejurkar/aspnetcore that referenced this pull request Jan 22, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants