Skip to content

Automatic constructor registration issue #8

@pnmcosta

Description

@pnmcosta

Hi,

This is not working if you rely on automatic constructor registration, https://unitycontainer.github.io/tutorials/registration/Type/Constructor/automatic.html

I've forked this repo, and updated all the dependencies to Unity 5.11.1 and Logging Abstractions 3.0.0

If you add an empty constructor to the LoggedType in the unit test, and run them, it will fail. Unity is probably not picking up ILogger and ILogger<> as resolvable types.

Is this expected behaviour? Or could something be done about it? Because if you use dependencies that do resolve, it will pick the correct constructor (the one with the most arguments)

Thanks,
P.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions