Skip to content
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

Dependency injection doesn't handle inheritance #16439

Closed
SteveSandersonMS opened this issue Mar 8, 2018 · 0 comments
Closed

Dependency injection doesn't handle inheritance #16439

SteveSandersonMS opened this issue Mar 8, 2018 · 0 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@SteveSandersonMS
Copy link
Member

Example scenario: if you subclass Router, e.g.,

public class MyRouter : Router {}

... and then try to use <MyRouter />, it will fail because Router didn't get its UriHelper injected.

LunicLynx referenced this issue in LunicLynx/Blazor Mar 13, 2018
SteveSandersonMS referenced this issue in SteveSandersonMS/BlazorMigration Nov 27, 2018
@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
@dotnet dotnet 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
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

2 participants