Example #1
0
            internal DisposableRegistration(ScopedLifestyle s, Lifestyle l, Container c, Func <TImpl> ic) : base(l, c)
            {
                this.instanceCreator = ic;
                this.ScopedLifestyle = s;

                DisposableTransientLifestyle.TryEnableTransientDisposalOrThrow(c);
            }
Example #2
0
 internal DisposableRegistration(
     ScopedLifestyle s, Lifestyle l, Container c, Type concreteType, Func <object> ic = null)
     : base(l, c, concreteType, ic)
 {
     this.ScopedLifestyle = s;
     DisposableTransientLifestyle.TryEnableTransientDisposalOrThrow(c);
 }