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