public DefaultLifetimeScopeAccessor(IServiceProvider applicationServices, IHttpContextAccessor httpContextAccessor)
        {
            Guard.NotNull(applicationServices, nameof(applicationServices));
            Guard.NotNull(httpContextAccessor, nameof(httpContextAccessor));

            _rootContainer       = applicationServices.AsLifetimeScope();
            _httpContextAccessor = httpContextAccessor;
            _state = new ContextState <ILifetimeScope>("CustomLifetimeScopeProvider.WorkScope");
        }