Пример #1
0
 public ObjectContainer(ILifetimeScope container, IContainer parent = null)
 {
     _container = container;
     Parent     = parent;
     RegisterInstance <IContainer>(this);
 }
Пример #2
0
 public static ILifetimeScope GetAutofacContainer(this IContainer container)
 {
     return((container as ObjectContainer)?._container);
 }