17 implementations of ContentRootFileProvider
Aspire.Dashboard.Tests (1)
BrowserSecurityHeadersMiddlewareTests.cs (1)
91public IFileProvider ContentRootFileProvider { get; set; } = default!;
Aspire.Hosting.Tests (1)
Dashboard\DashboardServiceTests.cs (1)
151public IFileProvider ContentRootFileProvider { get; set; } = default!;
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
294public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
HotReloadServiceTests.cs (1)
281public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
RazorComponentEndpointDataSourceTest.cs (1)
297public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
RazorComponentEndpointInvokerTest.cs (1)
61public IFileProvider ContentRootFileProvider { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
RazorComponentsServiceCollectionExtensionsTest.cs (1)
146public IFileProvider ContentRootFileProvider { get; set; } = new NullFileProvider();
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Infrastructure\TestWebHostEnvironment.cs (1)
14public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironment.cs (1)
26public IFileProvider ContentRootFileProvider { get; set; } = default!;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1612public IFileProvider ContentRootFileProvider { get; set; } = null!;
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
266public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
342public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1033public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.Routing.Tests (1)
RouteHandlerOptionsTests.cs (1)
72public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
1879public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
107public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.Extensions.Hosting (1)
Internal\HostingEnvironment.cs (1)
36public IFileProvider ContentRootFileProvider { get; set; } = null!;
1 write to ContentRootFileProvider
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironmentExtensions.cs (1)
75hostingEnvironment.ContentRootFileProvider = baseEnvironment?.ContentRootFileProvider ?? new PhysicalFileProvider(hostingEnvironment.ContentRootPath);
15 references to ContentRootFileProvider
Identity.DefaultUI.WebSite (1)
StartupBase.cs (1)
89pendingProviders.Push(env.ContentRootFileProvider);
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
63_fileProvider = _options.FileProvider ?? hostingEnvironment.ContentRootFileProvider;
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostService.cs (1)
156application = ErrorPageBuilder.BuildErrorPageApplication(HostingEnvironment.ContentRootFileProvider, Logger, showDetailedErrors, ex);
Internal\HostingEnvironmentExtensions.cs (1)
75hostingEnvironment.ContentRootFileProvider = baseEnvironment?.ContentRootFileProvider ?? new PhysicalFileProvider(hostingEnvironment.ContentRootPath);
Internal\WebHost.cs (1)
248return ErrorPageBuilder.BuildErrorPageApplication(hostingEnv.ContentRootFileProvider, logger, showDetailedErrors, ex);
Microsoft.AspNetCore.Hosting.Tests (3)
HostingEnvironmentExtensionsTests.cs (3)
28Assert.IsAssignableFrom<PhysicalFileProvider>(env.ContentRootFileProvider); 41Assert.IsAssignableFrom<PhysicalFileProvider>(env.ContentRootFileProvider); 54Assert.IsAssignableFrom<PhysicalFileProvider>(env.ContentRootFileProvider);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
DependencyInjection\MvcRazorRuntimeCompilationOptionsSetup.cs (1)
22options.FileProviders.Add(_hostingEnvironment.ContentRootFileProvider);
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
311hostingEnvironment.SetupGet(e => e.ContentRootFileProvider)
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2527Assert.NotNull(iHostApplicationBuilder.Environment.ContentRootFileProvider);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
412IFileProvider contentRootFileProvider = _hostEnvironment.ContentRootFileProvider;
Microsoft.Extensions.Hosting.Abstractions (1)
HostDefaults.cs (1)
23/// and <see cref="IHostEnvironment.ContentRootFileProvider"/>.
RewriteSample (2)
Startup.cs (2)
25.AddIISUrlRewrite(Environment.ContentRootFileProvider, "UrlRewrite.xml") 26.AddApacheModRewrite(Environment.ContentRootFileProvider, "Rewrite.txt");