Created
October 3, 2012 18:39
-
-
Save corkupine/3828907 to your computer and use it in GitHub Desktop.
wiring up new dependencies
This file contains 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.Register<IndexedCompanyRepository>(c => new IndexedCompanyRepository(new RiakCompanyRepository(container.Resolve<IRiakClient>()), | |
container.Resolve<IElasticClient>())).ReusedWithin(ReuseScope.Request); | |
container.Register<ICompanyRepository>(c => container.Resolve<IndexedCompanyRepository>()); | |
container.Register<IFindCompanies>(c => container.Resolve<IndexedCompanyRepository>()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment