public AuthorizeAttributeAclModule(
            IMvcContextFactory mvcContextFactory,
            IObjectCopier objectCopier,
            IControllerDescriptorFactory controllerDescriptorFactory,
            IControllerBuilder controllerBuilder,
            IAuthorizeAttributeBuilder authorizeAttributeBuilder,
            IGlobalFilterProvider filterProvider
            )
        {
            if (mvcContextFactory == null)
                throw new ArgumentNullException("mvcContextFactory");
            if (objectCopier == null)
                throw new ArgumentNullException("objectCopier");
            if (controllerDescriptorFactory == null)
                throw new ArgumentNullException("controllerDescriptorFactory");
            if (controllerBuilder == null)
                throw new ArgumentNullException("controllerBuilder");
            if (authorizeAttributeBuilder == null)
                throw new ArgumentNullException("authorizeAttributeBuilder");
            if (filterProvider == null)
                throw new ArgumentNullException("filterProvider");

            this.mvcContextFactory = mvcContextFactory;
            this.objectCopier = objectCopier;
            this.controllerDescriptorFactory = controllerDescriptorFactory;
            this.controllerBuilder = controllerBuilder;
            this.authorizeAttributeBuilder = authorizeAttributeBuilder;
            this.filterProvider = filterProvider;
        }
        public AuthorizeAttributeAclModule(
            IMvcContextFactory mvcContextFactory,
            IObjectCopier objectCopier,
            IControllerDescriptorFactory controllerDescriptorFactory,
            IControllerBuilder controllerBuilder,
            IAuthorizeAttributeBuilder authorizeAttributeBuilder,
            IGlobalFilterProvider filterProvider
            )
        {
            if (mvcContextFactory == null)
            {
                throw new ArgumentNullException("mvcContextFactory");
            }
            if (objectCopier == null)
            {
                throw new ArgumentNullException("objectCopier");
            }
            if (controllerDescriptorFactory == null)
            {
                throw new ArgumentNullException("controllerDescriptorFactory");
            }
            if (controllerBuilder == null)
            {
                throw new ArgumentNullException("controllerBuilder");
            }
            if (authorizeAttributeBuilder == null)
            {
                throw new ArgumentNullException("authorizeAttributeBuilder");
            }
            if (filterProvider == null)
            {
                throw new ArgumentNullException("filterProvider");
            }

            this.mvcContextFactory           = mvcContextFactory;
            this.objectCopier                = objectCopier;
            this.controllerDescriptorFactory = controllerDescriptorFactory;
            this.controllerBuilder           = controllerBuilder;
            this.authorizeAttributeBuilder   = authorizeAttributeBuilder;
            this.filterProvider              = filterProvider;
        }
 public ReflectedAuthorizeAttributeCache(ICache cache, IAuthorizeAttributeBuilder builder)
 {
     this.cache   = cache;
     this.builder = builder;
 }
 public ReflectedAuthorizeAttributeCache(ICache cache, IAuthorizeAttributeBuilder builder)
 {
     this.cache = cache;
     this.builder = builder;
 }