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

Resolving Types Registered as Interfaces with Non-Generic Overloads Method #24

Open
Que2701 opened this issue Jan 9, 2021 · 0 comments

Comments

@Que2701
Copy link

Que2701 commented Jan 9, 2021

The example uses an interface called IService in the registration process, but the line of code that requests the instance of the object all of a sudden uses an interface called IMyService (demonstrated in code snipped below)

var instance = (IService)container.Resolve(typeof(IMyService));

This looks like a typo

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

No branches or pull requests

1 participant