I was wondering is it safe to implement StructureMap IContainer as singleton and use it that way in MVC SPA application with WebApi? My idea was to share the same instance of IContainer object between IDependencyResolver(s) for MVC controllers and WebApi like:
For<IContainer>().Singleton();
Container needs to be configured only once at application start without the need to change configuration at runtime.