internal DisposableRegistration(ScopedLifestyle s, Lifestyle l, Container c, Func <TImpl> ic) : base(l, c) { this.instanceCreator = ic; this.ScopedLifestyle = s; DisposableTransientLifestyle.TryEnableTransientDisposalOrThrow(c); }
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); }