Ejemplo n.º 1
0
 public AuthorizationContextCache(ICache cache, IControllerContextCache controllerContextCache, IControllerDescriptorCache controllerDescriptorCache, IRouteDataCache routeDataCache)
 {
     this.cache = cache;
     this.routeDataCache = routeDataCache;
     this.controllerContextCache = controllerContextCache;
     this.controllerDescriptorCache = controllerDescriptorCache;
 }
Ejemplo n.º 2
0
 public AuthorizationContextCache(ICache cache, IControllerContextCache controllerContextCache, IControllerDescriptorCache controllerDescriptorCache, IRouteDataCache routeDataCache)
 {
     this.cache                     = cache;
     this.routeDataCache            = routeDataCache;
     this.controllerContextCache    = controllerContextCache;
     this.controllerDescriptorCache = controllerDescriptorCache;
 }
        public ControllerDescriptorCacheTests()
        {
            controllerTypeCache = new ControllerTypeCache(new NoCache())
            {
                ReferencedAssemblies = (() => new List<Assembly> { GetType().Assembly })
            };

            controllerDescriptorCache = new ControllerDescriptorCache(new NoCache(), controllerTypeCache);
        }
Ejemplo n.º 4
0
        public ControllerDescriptorCacheTests()
        {
            controllerTypeCache = new ControllerTypeCache(new NoCache())
            {
                ReferencedAssemblies = (() => new List <Assembly> {
                    GetType().Assembly
                })
            };

            controllerDescriptorCache = new ControllerDescriptorCache(new NoCache(), controllerTypeCache);
        }
        public AuthorizationContextCacheTests()
        {
            requestContext = TestHelper.CreateRequestContext();
            controllerTypeCache = new ControllerTypeCache(new NoCache())
            {
                ReferencedAssemblies = (() => new List<Assembly> { GetType().Assembly })
            };

            controllerContextCache = new ControllerContextCache(new NoCache(), controllerTypeCache);
            controllerDescriptorCache = new ControllerDescriptorCache(new NoCache(), controllerTypeCache);
            authorizationContextCache = new AuthorizationContextCache(new NoCache(), controllerContextCache, controllerDescriptorCache);
        }
        public AuthorizationContextCacheTests()
        {
            requestContext      = TestHelper.CreateRequestContext();
            controllerTypeCache = new ControllerTypeCache(new NoCache())
            {
                ReferencedAssemblies = (() => new List <Assembly> {
                    GetType().Assembly
                })
            };

            controllerContextCache    = new ControllerContextCache(new NoCache(), controllerTypeCache);
            controllerDescriptorCache = new ControllerDescriptorCache(new NoCache(), controllerTypeCache);
            authorizationContextCache = new AuthorizationContextCache(new NoCache(), controllerContextCache, controllerDescriptorCache);
        }
 public BetterAsyncControllerActionInvokerTestWrapper(IControllerDescriptorCache descriptorCache)
     : base(descriptorCache)
 {
 }
 public BetterAsyncControllerActionInvoker(IControllerDescriptorCache descriptorCache)
 {
     this.descriptorCache = descriptorCache;
 }