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; }
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; }
public UrlResolver(IRouteCollection routes, IHttpRuntime httpRuntime) { routes.ThrowIfNull("routes"); httpRuntime.ThrowIfNull("httpRuntime"); _routes = new Lazy<IRouteCollection>(() => routes); _httpRuntime = httpRuntime; }
public UrlResolver(IRouteCollection routes, IHttpRuntime httpRuntime) { routes.ThrowIfNull("routes"); httpRuntime.ThrowIfNull("httpRuntime"); _routes = new Lazy <IRouteCollection>(() => routes); _httpRuntime = httpRuntime; }
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; }
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; }
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(); }
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; }
public RoutingDiagnosticConfiguration(IRouteCollection routes) { routes.ThrowIfNull("routes"); _routes = new Lazy <IRouteCollection>(() => routes); }
public RoutingDiagnosticConfiguration(IRouteCollection routes) { routes.ThrowIfNull("routes"); _routes = new Lazy<IRouteCollection>(() => routes); }