Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class MappingPhysicalFileProvider

A IBasePathFileProvider provider that maps from a path to another path

Inheritance
System.Object
MappingPhysicalFileProvider
Implements
Microsoft.Extensions.FileProviders.IFileProvider
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3
Syntax
public class MappingPhysicalFileProvider : Object, IBasePathFileProvider, IFileProvider

Constructors

MappingPhysicalFileProvider(String, String, String)

Constructs a new instance of MappingPhysicalFileProvider

Declaration
public MappingPhysicalFileProvider(string from, string to, string physicalPath)
Parameters
Type Name Description
System.String from

The path it should map from

System.String to

The path it should map to

System.String physicalPath

The physical path to the resources

Properties

BasePath

Declaration
public string BasePath { get; }
Property Value
Type Description
System.String

Methods

GetDirectoryContents(String)

Declaration
public IDirectoryContents GetDirectoryContents(string subpath)
Parameters
Type Name Description
System.String subpath
Returns
Type Description
Microsoft.Extensions.FileProviders.IDirectoryContents

GetFileInfo(String)

Declaration
public IFileInfo GetFileInfo(string subpath)
Parameters
Type Name Description
System.String subpath
Returns
Type Description
Microsoft.Extensions.FileProviders.IFileInfo

Watch(String)

Declaration
public IChangeToken Watch(string filter)
Parameters
Type Name Description
System.String filter
Returns
Type Description
Microsoft.Extensions.Primitives.IChangeToken

Implements

Microsoft.Extensions.FileProviders.IFileProvider

Extension Methods