Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LifecycleSingleton {
- public IContainer Container;
- public LifecycleSingleton() {
- Container = new Container(x => x.For<IClassX>().LifecycleIs(new SingletonLifecycle()).Use<ClassX>());
- Container = new Container(x => x.For<IClassX>().Singleton().Use<ClassX>());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement