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