Skip to content

FilteredFileProvider class

namespace: Serenity.Web   assembly: Serenity.Net.Web

A file provider that only exposes the files of another file provider that a filter accepts, e.g. by the include / exclude patterns of StaticAssetPatternFilter. Directories are always exposed, their contents are filtered.

public sealed class FilteredFileProvider : IFileProvider
parameter description
inner Inner file provider
isMatch Filter that receives a path relative to the provider root, like "css/site.css"

Public Members

name description
FilteredFileProvider(…) A file provider that only exposes the files of another file provider that a filter accepts, e.g. by the include / exclude patterns of StaticAssetPatternFilter. Directories are always exposed, their contents are filtered.
GetDirectoryContents(…)
GetFileInfo(…)
Watch(…)

See Also