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

Ignore compiler generated classes on autoregistration #719

Merged
merged 2 commits into from Feb 29, 2016

Conversation

Projects
None yet
2 participants
@CosminLazar
Contributor

CosminLazar commented Feb 29, 2016

When dealing with deferred IEnumerables (using yield return/break) the compiler generates a helper class to handle the deferred execution. Autoregistration discovers this class and registers it as a provider for IEnumerable thus preventing the user from being able to resolve all implementations of T.

Ignore compiler generated classes on autoregistration
When dealing with deferred IEnumerables (using yield return/break) the compiler generates a helper class to handle the deferred execution. Autoregistration discovers this class and registers it as a provider for IEnumerable<T> thus preventing the user from being able to resolve all implementations of T.
@tillig

This comment has been minimized.

Show comment
Hide comment
@tillig

tillig Feb 29, 2016

Contributor

Nice catch! I think there's one minor typo to fix up and we can pull it. Thanks!

Contributor

tillig commented Feb 29, 2016

Nice catch! I think there's one minor typo to fix up and we can pull it. Thanks!

@CosminLazar

This comment has been minimized.

Show comment
Hide comment
@CosminLazar

CosminLazar Feb 29, 2016

Contributor

Fixed the typo. Glad that I could help!

Contributor

CosminLazar commented Feb 29, 2016

Fixed the typo. Glad that I could help!

tillig added a commit that referenced this pull request Feb 29, 2016

Merge pull request #719 from CosminLazar/develop
Ignore compiler generated classes on assembly scanning / auto-registration.

@tillig tillig merged commit 2912f66 into autofac:develop Feb 29, 2016

1 check was pending

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
@tillig

This comment has been minimized.

Show comment
Hide comment
@tillig

tillig Feb 29, 2016

Contributor

Pulled. Thanks again!

Contributor

tillig commented Feb 29, 2016

Pulled. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment