Exemplo n.º 1
0
 private DIContainerElement(
     Type type,
     IDIContainerElementLifecyle lifecycle,
     object instance, Func <object> create)
 {
     Type            = type;
     _lifecycle      = lifecycle;
     _instance       = instance;
     _createInstance = create;
 }
Exemplo n.º 2
0
 public DIContainerElement(
     Type type,
     IDIContainerElementLifecyle lifecycle,
     Func <object> create)
     : this(type, lifecycle, null, create)
 {
     if (create == null)
     {
         throw new ArgumentNullException(nameof(create));
     }
 }