Skip to content

Resolve enumerable errors are suppressed #87

@petedavis

Description

@petedavis

Had an issue using the unity container as a bootstrapper for a simple Nancy app where I could see a two types being registered, but only ever one returned when Resolve<IEnumerable> was called.

Turned out that there was an assembly binding error which was suppressed in the above line.

This issue was identified by switching to the Autofac version of the bootstrapper where it did not hide the exception. I believe that Unity should do the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    releaseRelease branch

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions