Skip to content

Component constructor injection #15779

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
retypeit opened this issue Jul 19, 2018 · 2 comments
Closed

Component constructor injection #15779

retypeit opened this issue Jul 19, 2018 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@retypeit
Copy link

I would love it if Blazor would allow constructor injection when composing components with base classes that requires injection of services (to make the DI system more consistent with how it works when composing services).

If this is a feature you would consider I would not mind creating a PR with the functionality to help out

@dlr1
Copy link

dlr1 commented Jul 20, 2018

aspnet/Blazor#563

@SteveSandersonMS
Copy link
Member

I think this also duplicates #5497, so I'll close in favour of that one.

@mkArtakMSFT mkArtakMSFT transferred this issue from dotnet/blazor Oct 27, 2019
@mkArtakMSFT mkArtakMSFT added the area-blazor Includes: Blazor, Razor Components label Oct 27, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

4 participants