Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.For<ISomeClass>()
- .Use<SomeClass>()
- .Singleton();
- this.For<ISomeClass>()
- .Use(c=>c.GetInstance<SomeClass>())
- .Singleton();
- this.ForConcreteType<SomeClass>()
- .Configure
- .Singleton();
- this.For<ISomeClass>()
- .Use(c=> new SomeClass(
- c.GetInstance<ISomethingElse>(),
- c.GetInstance<ISomeOtherThing>(),
- c.GetInstance<ITenMoreOfThese>()
- ));
Add Comment
Please, Sign In to add comment