Skip to content

WebHostBuilder.UseStartup<>() Must have a constraint for class type #1472

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

Closed
xumix opened this issue May 19, 2016 · 2 comments
Closed

WebHostBuilder.UseStartup<>() Must have a constraint for class type #1472

xumix opened this issue May 19, 2016 · 2 comments

Comments

@xumix
Copy link

xumix commented May 19, 2016

Something list this:

public static IWebHostBuilder UseStartup<TStartup>(this IWebHostBuilder hostBuilder) where TStartup : class, IAppStartup

Or even a base class with required constructor, so I know from the beginning what method must be implemented.

There is NO way for me at the moment to understand the Startup class methods and their signature w/o reading some examples and docs or launching the app.

@NatMarchand
Copy link
Contributor

You can't have any constraint as those methods signatures are not always the same because of the dependency injection.

@aspnet-hello
Copy link

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

natemcmaster pushed a commit that referenced this issue Nov 14, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants