예제 #1
0
 public AutoDIServiceDescriptor(Type serviceType, Type targetType, Lifetime lifetime)
     : base(serviceType, targetType, lifetime.FromAutoDI())
 {
     AutoDILifetime = lifetime;
     TargetType     = targetType;
 }
예제 #2
0
 public AutoDIServiceDescriptor(Type serviceType, Type targetType, Func <IServiceProvider, object> factory, Lifetime lifetime)
     : base(serviceType, factory, lifetime.FromAutoDI())
 {
     AutoDILifetime = lifetime;
     TargetType     = targetType;
 }