public IInstanceBuilder MakeGenericPipelineEngine(Type[] types) { var instanceBuilder = new InstanceBuilder(_instanceFactory.MakeGeneric(types)); instanceBuilder._interceptors.AddRange(_interceptors.Select(x => x.Clone())); instanceBuilder._lifetime = _lifetime.Clone(); return instanceBuilder; }
public IInstanceBuilder Clone() { var instanceBuilder = new InstanceBuilder(_instanceFactory.Clone()); instanceBuilder._interceptors.AddRange(_interceptors); instanceBuilder._lifetime = _lifetime; return instanceBuilder; }