Created
September 3, 2012 18:41
-
-
Save davybrion/3612050 to your computer and use it in GitHub Desktop.
code snippets for "Introduction To IOC With Castle Windsor" post, part II
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.AddComponent<IOrderDataAccessor, XmlOrderDataAccessor>(); |
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
| static Container() | |
| { | |
| _container = new WindsorContainer(); | |
| _container.AddComponent<IOrderDataAccessor, XmlOrderDataAccessor>(); | |
| _container.AddComponent<IOrderRepository, OrderRepositoryWithAuditing>(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment