Example #1
0
        public DefaultLifetimeScopeProvider(ILifetimeScopeAccessor accessor)
        {
            Guard.NotNull(accessor, nameof(accessor));

            this._accessor = accessor;
            AutofacRequestLifetimeHttpModule.SetLifetimeScopeProvider(this);
        }
Example #2
0
        public DefaultLifetimeScopeProvider(ILifetimeScopeAccessor accessor)
        {
            Guard.ArgumentNotNull(() => accessor);

            this._accessor = accessor;
            AutofacRequestLifetimeHttpModule.SetLifetimeScopeProvider(this);
        }
        public AutofacLifetimeScopeProvider(ILifetimeScope container)
        {
            Guard.ArgumentNotNull(() => container);

            this._container = container;
            AutofacRequestLifetimeHttpModule.SetLifetimeScopeProvider(this);
        }