コード例 #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;
 }