Esempio n. 1
0
        public DefaultLifetimeScopeProvider(ILifetimeScopeAccessor accessor)
        {
            Guard.NotNull(accessor, nameof(accessor));

            this._accessor = accessor;
            AutofacRequestLifetimeHttpModule.SetLifetimeScopeProvider(this);
        }
Esempio n. 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);
        }