public ObjectContainer(ILifetimeScope container, IContainer parent = null)
 {
     _container = container;
     Parent     = parent;
     RegisterInstance <IContainer>(this);
 }
 public static ILifetimeScope GetAutofacContainer(this IContainer container)
 {
     return((container as ObjectContainer)?._container);
 }