21 references to StaticFileMiddleware
Microsoft.AspNetCore.StaticFiles (11)
StaticFileExtensions.cs (2)
29
return app.UseMiddleware<
StaticFileMiddleware
>();
63
return app.UseMiddleware<
StaticFileMiddleware
>(Options.Create(options));
StaticFileMiddleware.cs (1)
44
_logger = loggerFactory.CreateLogger<
StaticFileMiddleware
>();
StaticFilesEndpointRouteBuilderExtensions.cs (8)
25
/// <see cref="
StaticFileMiddleware
"/> that attempts to serve the file specified by <paramref name="filePath"/>.
38
/// The default <see cref="StaticFileOptions"/> for the <see cref="
StaticFileMiddleware
"/> will be used.
62
/// <see cref="
StaticFileMiddleware
"/> that attempts to serve the file specified by <paramref name="filePath"/>.
66
/// <param name="options"><see cref="StaticFileOptions"/> for the <see cref="
StaticFileMiddleware
"/>.</param>
98
/// <see cref="
StaticFileMiddleware
"/> that attempts to serve the file specified by <paramref name="filePath"/>.
112
/// The default <see cref="StaticFileOptions"/> for the <see cref="
StaticFileMiddleware
"/> will be used.
141
/// <see cref="
StaticFileMiddleware
"/> that attempts to serve the file specified by <paramref name="filePath"/>.
146
/// <param name="options"><see cref="StaticFileOptions"/> for the <see cref="
StaticFileMiddleware
"/>.</param>
Microsoft.AspNetCore.StaticFiles.Tests (10)
StaticFileContextTest.cs (10)
22
var validateResult =
StaticFileMiddleware
.ValidatePath(httpContext, pathString, out var subPath);
23
var contentTypeResult =
StaticFileMiddleware
.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
48
var validateResult =
StaticFileMiddleware
.ValidatePath(httpContext, pathString, out var subPath);
49
var contentTypeResult =
StaticFileMiddleware
.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
76
var validateResult =
StaticFileMiddleware
.ValidatePath(httpContext, pathString, out var subPath);
77
var contentTypeResult =
StaticFileMiddleware
.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
105
var validateResult =
StaticFileMiddleware
.ValidatePath(httpContext, pathString, out var subPath);
106
var contentTypeResult =
StaticFileMiddleware
.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
133
var validateResult =
StaticFileMiddleware
.ValidatePath(httpContext, pathString, out var subPath);
134
var contentTypeResult =
StaticFileMiddleware
.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);