コード例 #1
0
        public ControllerAuthorization(IAuthorizeAttributeCache authorizeAttributeCache, IAuthorizationContextCache authorizationContextCache, RouteCollection routes)
        {
            Guard.IsNotNull(authorizeAttributeCache, "authorizeAttributeCache");
            Guard.IsNotNull(authorizationContextCache, "authorizationContextCache");
            Guard.IsNotNull(routes, "routes");

            this.authorizeAttributeCache   = authorizeAttributeCache;
            this.authorizationContextCache = authorizationContextCache;
            this.routes = routes;
        }
コード例 #2
0
        public ControllerAuthorization(IAuthorizeAttributeCache authorizeAttributeCache, IAuthorizationContextCache authorizationContextCache, RouteCollection routes)
        {
            Guard.IsNotNull(authorizeAttributeCache, "authorizeAttributeCache");
            Guard.IsNotNull(authorizationContextCache, "authorizationContextCache");
            Guard.IsNotNull(routes, "routes");

            this.authorizeAttributeCache = authorizeAttributeCache;
            this.authorizationContextCache = authorizationContextCache;
            this.routes = routes;
        }
コード例 #3
0
        public ControllerAuthorization(IAuthorizeAttributeCache authorizeAttributeCache, IReflectedAuthorizeAttributeCache reflectedAuthorizeAttributeCache, IObjectCopier objectCopier, RouteCollection routes)
        {
            Guard.IsNotNull(authorizeAttributeCache, "authorizeAttributeCache");
            Guard.IsNotNull(reflectedAuthorizeAttributeCache, "reflectedAuthorizeAttributeCache");
            Guard.IsNotNull(objectCopier, "objectCopier");
            Guard.IsNotNull(routes, "routes");

            this.authorizeAttributeCache = authorizeAttributeCache;
            this.reflectedAuthorizeAttributeCache = reflectedAuthorizeAttributeCache;
            this.objectCopier = objectCopier;
            this.routes = routes;
        }
コード例 #4
0
        public ControllerAuthorization(IAuthorizeAttributeCache authorizeAttributeCache, IReflectedAuthorizeAttributeCache reflectedAuthorizeAttributeCache, IObjectCopier objectCopier, RouteCollection routes)
        {
            Guard.IsNotNull(authorizeAttributeCache, "authorizeAttributeCache");
            Guard.IsNotNull(reflectedAuthorizeAttributeCache, "reflectedAuthorizeAttributeCache");
            Guard.IsNotNull(objectCopier, "objectCopier");
            Guard.IsNotNull(routes, "routes");

            this.authorizeAttributeCache          = authorizeAttributeCache;
            this.reflectedAuthorizeAttributeCache = reflectedAuthorizeAttributeCache;
            this.objectCopier = objectCopier;
            this.routes       = routes;
        }
コード例 #5
0
ファイル: ControllerAuthorization.cs プロジェクト: Zedfa/Core
 public ControllerAuthorization(IAuthorizeAttributeCache authorizeAttributeCache, IAuthorizationContextCache authorizationContextCache, RouteCollection routes)
 {
     this.authorizeAttributeCache   = authorizeAttributeCache;
     this.authorizationContextCache = authorizationContextCache;
     this.routes = routes;
 }
コード例 #6
0
 public ControllerAuthorization(IAuthorizeAttributeCache authorizeAttributeCache, IAuthorizationContextCache authorizationContextCache, RouteCollection routes)
 {
     this.authorizeAttributeCache = authorizeAttributeCache;
     this.authorizationContextCache = authorizationContextCache;
     this.routes = routes;
 }