1 write to _options
Microsoft.AspNetCore.StaticFiles (1)
DefaultFilesMiddleware.cs (1)
37
_options
= options.Value;
5 references to _options
Microsoft.AspNetCore.StaticFiles (5)
DefaultFilesMiddleware.cs (5)
38
_fileProvider =
_options
.FileProvider ?? Helpers.ResolveFileProvider(hostingEnv);
39
_matchUrl =
_options
.RequestPath;
60
for (int matchIndex = 0; matchIndex <
_options
.DefaultFileNames.Count; matchIndex++)
62
string defaultFile =
_options
.DefaultFileNames[matchIndex];
69
if (
_options
.RedirectToAppendTrailingSlash && !Helpers.PathEndsInSlash(context.Request.Path))