public IDependencyScope BeginScope()
        {
            // Nested scope will likely already be created on Application_BeginRequest
            // So call the *IfNeeded version
            var scopeDisposer = InternalDependencyResolver.BeginScopedLifecycleIfNeeded();

            return(new StructureMapDependencyScope(scopeDisposer));
        }