12 instantiations of DirectoryBrowserOptions
Microsoft.AspNetCore.StaticFiles (2)
DirectoryBrowserExtensions.cs (1)
46
return app.UseDirectoryBrowser(new
DirectoryBrowserOptions
FileServerOptions.cs (1)
20
DirectoryBrowserOptions = new
DirectoryBrowserOptions
(SharedOptions);
Microsoft.AspNetCore.StaticFiles.Tests (10)
DirectoryBrowserMiddlewareTests.cs (10)
29
app => app.UseDirectoryBrowser(new
DirectoryBrowserOptions
{ Formatter = null }),
36
app => app.UseDirectoryBrowser(new
DirectoryBrowserOptions
{ FileProvider = null }),
84
app => app.UseDirectoryBrowser(new
DirectoryBrowserOptions
121
app.UseDirectoryBrowser(new
DirectoryBrowserOptions
158
app.UseDirectoryBrowser(new
DirectoryBrowserOptions
217
app => app.UseDirectoryBrowser(new
DirectoryBrowserOptions
261
app => app.UseDirectoryBrowser(new
DirectoryBrowserOptions
311
app => app.UseDirectoryBrowser(new
DirectoryBrowserOptions
359
app => app.UseDirectoryBrowser(new
DirectoryBrowserOptions
380
Assert.True(new
DirectoryBrowserOptions
().RedirectToAppendTrailingSlash);
5 references to DirectoryBrowserOptions
Microsoft.AspNetCore.StaticFiles (5)
DirectoryBrowserExtensions.cs (1)
58
public static IApplicationBuilder UseDirectoryBrowser(this IApplicationBuilder app,
DirectoryBrowserOptions
options)
DirectoryBrowserMiddleware.cs (3)
18
private readonly
DirectoryBrowserOptions
_options;
30
public DirectoryBrowserMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, IOptions<
DirectoryBrowserOptions
> options)
42
public DirectoryBrowserMiddleware(RequestDelegate next, IWebHostEnvironment hostingEnv, HtmlEncoder encoder, IOptions<
DirectoryBrowserOptions
> options)
FileServerOptions.cs (1)
33
public
DirectoryBrowserOptions
DirectoryBrowserOptions { get; private set; }