protected TemplatePathResolver(string extension, IHttpRuntime httpRuntime) { extension.ThrowIfNull("extension"); httpRuntime.ThrowIfNull("httpRuntime"); _extension = extension; _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, IHttpRuntime httpRuntime) { routes.ThrowIfNull("routes"); httpRuntime.ThrowIfNull("httpRuntime"); _routes = new Lazy <IRouteCollection>(() => routes); _httpRuntime = httpRuntime; }
public DefaultRestrictionContainer(IHttpRuntime httpRuntime) { httpRuntime.ThrowIfNull("httpRuntime"); _container = new Dictionary <Type, object> { { typeof(IHttpRuntime), 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 UrlRelativePathRestriction(string relativePath, IRequestValueComparer comparer, IHttpRuntime httpRuntime) { relativePath.ThrowIfNull("relativePath"); comparer.ThrowIfNull("comparer"); httpRuntime.ThrowIfNull("httpRuntime"); _relativePath = relativePath; _comparer = comparer; _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; }
protected BundleWatcherRoute(string name, Guid id, string relativePath, BundleWatcher watcher, IHttpRuntime httpRuntime) : base(name, id) { relativePath.ThrowIfNull("relativePath"); watcher.ThrowIfNull("watcher"); httpRuntime.ThrowIfNull("httpRuntime"); _relativePath = relativePath; _watcher = watcher; _httpRuntime = httpRuntime; _watcher.BundleChanged += WatcherBundleChanged; ConfigureRoute(); }
public DefaultBundleDependencyContainer(IHttpRuntime httpRuntime, IFileSystem fileSystem) { httpRuntime.ThrowIfNull("httpRuntime"); fileSystem.ThrowIfNull("fileSystem"); _container = new Dictionary <Type, object> { { typeof(IHttpRuntime), httpRuntime }, { typeof(IFileSystem), fileSystem }, { typeof(IGuidFactory), new GuidFactory() }, { typeof(ISystemClock), new SystemClock() } }; }
public IEnumerable<Routing.Route> GetRoutes(IGuidFactory guidFactory, IUrlResolver urlResolver, IHttpRuntime httpRuntime, string diagnosticsRelativeUrl) { guidFactory.ThrowIfNull("guidFactory"); urlResolver.ThrowIfNull("urlResolver"); httpRuntime.ThrowIfNull("httpRuntime"); diagnosticsRelativeUrl.ThrowIfNull("diagnosticsUrl"); yield return DiagnosticRouteHelper.Instance.GetViewRoute<AspNetView>( "Diagnostics ASP.net View", guidFactory, diagnosticsRelativeUrl + "/asp_net", ResponseResources.AspNet, AspNetViewNamespaces, httpRuntime, view => { view.UrlResolver = urlResolver; view.Populate(_cacheType, _responseGeneratorTypes, _responseHandlerTypes); }); yield return DiagnosticRouteHelper.Instance.GetStylesheetRoute("Diagnostics ASP.net View CSS", guidFactory, diagnosticsRelativeUrl + "/asp_net/css", ResponseResources.asp_net_view, httpRuntime); }
public IEnumerable <Routing.Route> GetRoutes(IGuidFactory guidFactory, IUrlResolver urlResolver, IHttpRuntime httpRuntime, string diagnosticsRelativeUrl) { guidFactory.ThrowIfNull("guidFactory"); urlResolver.ThrowIfNull("urlResolver"); httpRuntime.ThrowIfNull("httpRuntime"); diagnosticsRelativeUrl.ThrowIfNull("diagnosticsUrl"); yield return(DiagnosticRouteHelper.Instance.GetViewRoute <AspNetView>( "Diagnostics ASP.net View", guidFactory, diagnosticsRelativeUrl + "/asp_net", ResponseResources.AspNet, Enumerable.Empty <string>(), httpRuntime, view => { view.UrlResolver = urlResolver; view.Populate(_cacheType, _requestFilterTypes, _responseGeneratorTypes, _responseHandlerTypes, _errorHandlerTypes, _antiCsrfCookieManagerType, _antiCsrfNonceValidatorType, _antiCsrfResponseGeneratorType); })); yield return(DiagnosticRouteHelper.Instance.GetStylesheetRoute("Diagnostics ASP.net View CSS", guidFactory, diagnosticsRelativeUrl + "/asp_net/css", ResponseResources.asp_net_view, httpRuntime)); }
public FileSystem(IHttpRuntime httpRuntime) { httpRuntime.ThrowIfNull("httpRuntime"); _httpRuntime = httpRuntime; }