protected override void InitializeContext() { ContainerContextFactory.Current.NewThreadScopedContext(); _context = ContainerContextFactory.Current.GetContext(); var cfg = new ThreadStaticContainerConfiguration(_context); cfg.RegisterAllTypes(); }