10 instantiations of DefaultFilesOptions
Microsoft.AspNetCore.StaticFiles (2)
DefaultFilesExtensions.cs (1)
46
return app.UseDefaultFiles(new
DefaultFilesOptions
FileServerOptions.cs (1)
21
DefaultFilesOptions = new
DefaultFilesOptions
(SharedOptions);
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);
4 references to DefaultFilesOptions
Microsoft.AspNetCore.StaticFiles (4)
DefaultFilesExtensions.cs (1)
58
public static IApplicationBuilder UseDefaultFiles(this IApplicationBuilder app,
DefaultFilesOptions
options)
DefaultFilesMiddleware.cs (2)
19
private readonly
DefaultFilesOptions
_options;
30
public DefaultFilesMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<
DefaultFilesOptions
> options)
FileServerOptions.cs (1)
38
public
DefaultFilesOptions
DefaultFilesOptions { get; private set; }