예제 #1
0
 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;
 }
예제 #2
0
 public IInstanceBuilder Clone()
 {
     var instanceBuilder = new InstanceBuilder(_instanceFactory.Clone());
     instanceBuilder._interceptors.AddRange(_interceptors);
     instanceBuilder._lifetime = _lifetime;
     return instanceBuilder;
 }