31 references to StaticFileOptions
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
383_app.UseStaticFiles(new StaticFileOptions()
blazor-devserver (2)
Server\Startup.cs (2)
57app.UseStaticFiles(new StaticFileOptions 68endpoints.MapFallbackToFile("index.html", new StaticFileOptions
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointDataSource.cs (1)
206var options = new StaticFileOptions
Microsoft.AspNetCore.Components.Server (1)
Builder\ComponentEndpointRouteBuilderExtensions.cs (1)
98var options = new StaticFileOptions
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
86var options = new StaticFileOptions();
Microsoft.AspNetCore.SpaServices.Extensions (2)
SpaDefaultPageMiddleware.cs (1)
38options.DefaultPageStaticFileOptions ?? new StaticFileOptions(),
StaticFiles\SpaStaticFilesExtensions.cs (1)
53UseSpaStaticFiles(applicationBuilder, new StaticFileOptions());
Microsoft.AspNetCore.StaticFiles (1)
StaticFileExtensions.cs (1)
46return app.UseStaticFiles(new StaticFileOptions
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
FallbackStaticFileTest.cs (1)
46endpoints.MapFallbackToFile("default.html", new StaticFileOptions()
StaticFileMiddlewareTests.cs (2)
146.Configure(app => app.UseStaticFiles(new StaticFileOptions 188.Configure(app => app.UseStaticFiles(new StaticFileOptions
Microsoft.AspNetCore.StaticFiles.Tests (19)
StaticFileContextTest.cs (5)
19var options = new StaticFileOptions(); 39var options = new StaticFileOptions(); 65var options = new StaticFileOptions(); 94var options = new StaticFileOptions(); 121var options = new StaticFileOptions();
StaticFileMiddlewareTests.cs (14)
64.Configure(app => app.UseStaticFiles(new StaticFileOptions { ServeUnknownFileTypes = true })) 103app.UseStaticFiles(new StaticFileOptions { ServeUnknownFileTypes = true }); 123using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions 142using (await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions { ContentTypeProvider = null }))) 146using (await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions { FileProvider = null }))) 179using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions 214using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions 254using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions 297using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions 350app.UseStaticFiles(new StaticFileOptions 398app.UseStaticFiles(new StaticFileOptions 454app.UseStaticFiles(new StaticFileOptions 472using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions 532using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new StaticFileOptions