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

IDependencyResolver.GetService<T>() is returning object rather than <T> #5086

Closed
Aaronontheweb opened this issue Jun 10, 2021 · 2 comments · Fixed by #5087
Closed

IDependencyResolver.GetService<T>() is returning object rather than <T> #5086

Aaronontheweb opened this issue Jun 10, 2021 · 2 comments · Fixed by #5087
Assignees
Labels
Milestone

Comments

@Aaronontheweb
Copy link
Member

During upgrading to 1.4.21-beta1 we saw that IDependencyResolver.GetService<T>() is returning object. Is there a specific reason why it is not directly returning <T>?
Now we need to cast it to T before we can use the object.

Originally posted by @wesselkranenborg in #5070 (comment)

We should update the API to change this.

@wesselkranenborg
Copy link
Contributor

Thanks for solving this, this will ease the update and saves a lot of casts.

@Aaronontheweb
Copy link
Member Author

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants