Created
September 1, 2011 09:08
-
-
Save ploeh/1185766 to your computer and use it in GitHub Desktop.
Configuring ordered named sequences in Unity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container.RegisterType<IMeal, Meal>( | |
new InjectionConstructor( | |
new ResolvedArrayParameter<ICourse>( | |
new ResolvedParameter<ICourse>("entrée"), | |
new ResolvedParameter<ICourse>("mainCourse"), | |
new ResolvedParameter<ICourse>("dessert")))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a code snippet from chapter 14 of Dependency Injection in .NET