9 references to DefaultFilesOptions
Microsoft.AspNetCore.StaticFiles (1)
DefaultFilesExtensions.cs (1)
46
return app.UseDefaultFiles(new
DefaultFilesOptions
Microsoft.AspNetCore.StaticFiles.Tests (8)
DefaultFilesMiddlewareTests.cs (8)
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
328
Assert.True(new
DefaultFilesOptions
().RedirectToAppendTrailingSlash);