public ImplicitRegistration(ImplicitRegistration factory)
     : base(typeof(LifetimeManager),
            factory.LifetimeManager?.CreateLifetimePolicy(),
            factory.Next)
 {
     Map = factory.Map;
     InjectionMembers = factory.InjectionMembers;
 }
Пример #2
0
 public ImplicitRegistration(UnityContainer owner, string?name, ImplicitRegistration factory)
     : base(owner)
 {
     Name             = name;
     BuildType        = factory.BuildType;
     Next             = factory.Next;
     LifetimeManager  = factory.LifetimeManager?.CreateLifetimePolicy() ?? new TransientLifetimeManager();
     InjectionMembers = factory.InjectionMembers;
     BuildRequired    = null != InjectionMembers && InjectionMembers.Any(m => m.BuildRequired);
 }