9 references to UseDefaultFiles
Microsoft.AspNetCore.StaticFiles (2)
DefaultFilesExtensions.cs (1)
46
return app.
UseDefaultFiles
(new DefaultFilesOptions
FileServerExtensions.cs (1)
85
app.
UseDefaultFiles
(options.DefaultFilesOptions);
Microsoft.AspNetCore.StaticFiles.Tests (7)
DefaultFilesMiddlewareTests.cs (7)
20
using (await StaticFilesTestServer.Create(app => app.
UseDefaultFiles
(new DefaultFilesOptions { FileProvider = null })))
64
app.
UseDefaultFiles
(new DefaultFilesOptions
103
app.
UseDefaultFiles
(new DefaultFilesOptions
143
app.
UseDefaultFiles
(new DefaultFilesOptions
212
app.
UseDefaultFiles
(new DefaultFilesOptions
257
using var host = await StaticFilesTestServer.Create(app => app.
UseDefaultFiles
(new DefaultFilesOptions
312
using var host = await StaticFilesTestServer.Create(app => app.
UseDefaultFiles
(new DefaultFilesOptions