23 references to UseStaticFiles
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
388
_app.
UseStaticFiles
(new StaticFileOptions()
blazor-devserver (1)
Server\Startup.cs (1)
57
app.
UseStaticFiles
(new StaticFileOptions
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
70
subBuilder.
UseStaticFiles
(options);
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\SpaStaticFilesExtensions.cs (1)
102
app.
UseStaticFiles
(staticFileOptions);
Microsoft.AspNetCore.StaticFiles (3)
FileServerExtensions.cs (1)
93
return app.
UseStaticFiles
(options.StaticFileOptions);
StaticFileExtensions.cs (1)
46
return app.
UseStaticFiles
(new StaticFileOptions
StaticFilesEndpointRouteBuilderExtensions.cs (1)
202
app.
UseStaticFiles
(options);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (2)
StaticFileMiddlewareTests.cs (2)
146
.Configure(app => app.
UseStaticFiles
(new StaticFileOptions
188
.Configure(app => app.
UseStaticFiles
(new StaticFileOptions
Microsoft.AspNetCore.StaticFiles.Tests (14)
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