Skip to content

Mykola Musiienko

My feedback

1 result found

  1. 44 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Mykola Musiienko commented  · 

    While Sebastian's code gets the job done, I believe it doesn't completely match the suggestion -- for example, it requires declaring a factory delegate and registering it in the container.

    So, if anyone is still interested in this suggestion, I implemented a Unity extension, which, I believe, matches the suggestion exactly and also is more in line with the Unity's parameterless automatic factories experience.

    https://github.com/mykolav/unitycontainer-param-autofactory

Feedback and Knowledge Base