21 references to StaticFileMiddleware
Microsoft.AspNetCore.StaticFiles (11)
StaticFileExtensions.cs (2)
29return app.UseMiddleware<StaticFileMiddleware>(); 63return 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)
22var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath); 23var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType); 48var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath); 49var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType); 76var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath); 77var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType); 105var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath); 106var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType); 133var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath); 134var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);