29 references to StaticFileOptions
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
388
_app.UseStaticFiles(new
StaticFileOptions
()
blazor-devserver (2)
Server\Startup.cs (2)
58
app.UseStaticFiles(new
StaticFileOptions
69
endpoints.MapFallbackToFile("index.html", new
StaticFileOptions
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
86
var options = new
StaticFileOptions
();
Microsoft.AspNetCore.SpaServices.Extensions (2)
SpaDefaultPageMiddleware.cs (1)
38
options.DefaultPageStaticFileOptions ?? new
StaticFileOptions
(),
StaticFiles\SpaStaticFilesExtensions.cs (1)
53
UseSpaStaticFiles(applicationBuilder, new
StaticFileOptions
());
Microsoft.AspNetCore.StaticFiles (1)
StaticFileExtensions.cs (1)
46
return app.UseStaticFiles(new
StaticFileOptions
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
FallbackStaticFileTest.cs (1)
46
endpoints.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)
19
var options = new
StaticFileOptions
();
39
var options = new
StaticFileOptions
();
65
var options = new
StaticFileOptions
();
94
var options = new
StaticFileOptions
();
121
var options = new
StaticFileOptions
();
StaticFileMiddlewareTests.cs (14)
64
.Configure(app => app.UseStaticFiles(new
StaticFileOptions
{ ServeUnknownFileTypes = true }))
103
app.UseStaticFiles(new
StaticFileOptions
{ ServeUnknownFileTypes = true });
123
using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
142
using (await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
{ ContentTypeProvider = null })))
146
using (await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
{ FileProvider = null })))
179
using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
214
using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
254
using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
297
using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
350
app.UseStaticFiles(new
StaticFileOptions
398
app.UseStaticFiles(new
StaticFileOptions
454
app.UseStaticFiles(new
StaticFileOptions
472
using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions
532
using var host = await StaticFilesTestServer.Create(app => app.UseStaticFiles(new
StaticFileOptions