コード例 #1
0
        public AspNetHttpHandler(
            IRouteCollection routes,
            ICache cache,
            IEnumerable <IResponseGenerator> responseGenerators,
            IEnumerable <IResponseHandler> responseHandlers,
            IAntiCsrfCookieManager antiCsrfCookieManager,
            IAntiCsrfNonceValidator antiCsrfNonceValidator,
            IAntiCsrfResponseGenerator antiCsrfResponseGenerator)
        {
            routes.ThrowIfNull("routes");
            cache.ThrowIfNull("cache");
            responseGenerators.ThrowIfNull("responseGenerators");
            responseHandlers.ThrowIfNull("responseHandlers");
            antiCsrfCookieManager.ThrowIfNull("antiCsrfSessionManager");
            antiCsrfNonceValidator.ThrowIfNull("antiCsrfTokenValidator");
            antiCsrfResponseGenerator.ThrowIfNull("antiCsrfResponseGenerator");

            _routes                    = routes;
            _cache                     = cache;
            _responseGenerators        = responseGenerators.ToArray();
            _responseHandlers          = responseHandlers.ToArray();
            _antiCsrfCookieManager     = antiCsrfCookieManager;
            _antiCsrfNonceValidator    = antiCsrfNonceValidator;
            _antiCsrfResponseGenerator = antiCsrfResponseGenerator;
        }
コード例 #2
0
		public AspNetHttpHandler(
			IRouteCollection routes,
			ICache cache,
			IEnumerable<IResponseGenerator> responseGenerators,
			IEnumerable<IResponseHandler> responseHandlers,
			IAntiCsrfCookieManager antiCsrfCookieManager,
			IAntiCsrfNonceValidator antiCsrfNonceValidator,
			IAntiCsrfResponseGenerator antiCsrfResponseGenerator)
		{
			routes.ThrowIfNull("routes");
			cache.ThrowIfNull("cache");
			responseGenerators.ThrowIfNull("responseGenerators");
			responseHandlers.ThrowIfNull("responseHandlers");
			antiCsrfCookieManager.ThrowIfNull("antiCsrfSessionManager");
			antiCsrfNonceValidator.ThrowIfNull("antiCsrfTokenValidator");
			antiCsrfResponseGenerator.ThrowIfNull("antiCsrfResponseGenerator");

			_routes = routes;
			_cache = cache;
			_responseGenerators = responseGenerators.ToArray();
			_responseHandlers = responseHandlers.ToArray();
			_antiCsrfCookieManager = antiCsrfCookieManager;
			_antiCsrfNonceValidator = antiCsrfNonceValidator;
			_antiCsrfResponseGenerator = antiCsrfResponseGenerator;
		}
コード例 #3
0
ファイル: UrlResolver.cs プロジェクト: kelong/JuniorRoute
		public UrlResolver(IRouteCollection routes, IHttpRuntime httpRuntime)
		{
			routes.ThrowIfNull("routes");
			httpRuntime.ThrowIfNull("httpRuntime");

			_routes = new Lazy<IRouteCollection>(() => routes);
			_httpRuntime = httpRuntime;
		}
コード例 #4
0
        public UrlResolver(IRouteCollection routes, IHttpRuntime httpRuntime)
        {
            routes.ThrowIfNull("routes");
            httpRuntime.ThrowIfNull("httpRuntime");

            _routes      = new Lazy <IRouteCollection>(() => routes);
            _httpRuntime = httpRuntime;
        }
コード例 #5
0
        public UrlResolver(IRouteCollection routes, IUrlResolverConfiguration configuration, IHttpRuntime httpRuntime)
        {
            routes.ThrowIfNull("routes");
            configuration.ThrowIfNull("configuration");
            httpRuntime.ThrowIfNull("httpRuntime");

            _routes        = new Lazy <IRouteCollection>(() => routes);
            _configuration = configuration;
            _httpRuntime   = httpRuntime;
        }
コード例 #6
0
        public UrlResolver(IRouteCollection routes, IUrlResolverConfiguration configuration, IHttpRuntime httpRuntime)
        {
            routes.ThrowIfNull("routes");
            configuration.ThrowIfNull("configuration");
            httpRuntime.ThrowIfNull("httpRuntime");

            _routes = new Lazy<IRouteCollection>(() => routes);
            _configuration = configuration;
            _httpRuntime = httpRuntime;
        }
コード例 #7
0
        public AspNetHttpHandler(IRouteCollection routes, ICache cache, IEnumerable <IResponseGenerator> responseGenerators, IEnumerable <IResponseHandler> responseHandlers)
        {
            routes.ThrowIfNull("routes");
            cache.ThrowIfNull("cache");
            responseGenerators.ThrowIfNull("responseGenerators");
            responseHandlers.ThrowIfNull("responseHandlers");

            _routes             = routes;
            _cache              = cache;
            _responseGenerators = responseGenerators.ToArray();
            _responseHandlers   = responseHandlers.ToArray();
        }
コード例 #8
0
        public AspNetHttpHandler(IRouteCollection routes, ICache cache, IEnumerable<IResponseGenerator> responseGenerators, IEnumerable<IResponseHandler> responseHandlers)
        {
            routes.ThrowIfNull("routes");
            cache.ThrowIfNull("cache");
            responseGenerators.ThrowIfNull("responseGenerators");
            responseHandlers.ThrowIfNull("responseHandlers");

            _routes = routes;
            _responseGenerators = responseGenerators.ToArray();
            _responseHandlers = responseHandlers.ToArray();
            _cache = cache;
        }
コード例 #9
0
        public RoutingDiagnosticConfiguration(IRouteCollection routes)
        {
            routes.ThrowIfNull("routes");

            _routes = new Lazy <IRouteCollection>(() => routes);
        }
コード例 #10
0
        public RoutingDiagnosticConfiguration(IRouteCollection routes)
        {
            routes.ThrowIfNull("routes");

            _routes = new Lazy<IRouteCollection>(() => routes);
        }