C# Class React.AspNet.AspNetFileSystem

Handles file system functionality, such as reading files. Maps all paths from application-relative (~/...) to full paths using ASP.NET's MapPath method.
Inheritance: FileSystemBase
Mostra file Open project: reactjs/React.NET

Public Methods

Method Description
AspNetFileSystem ( IHostingEnvironment hostingEnv ) : System.IO

Initializes a new instance of the AspNetFileSystem class.

MapPath ( string relativePath ) : string

Converts a path from an application relative path (~/...) to a full filesystem path

Method Details

AspNetFileSystem() public method

Initializes a new instance of the AspNetFileSystem class.
public AspNetFileSystem ( IHostingEnvironment hostingEnv ) : System.IO
hostingEnv IHostingEnvironment The ASP.NET 5 hosting environment
return System.IO

MapPath() public method

Converts a path from an application relative path (~/...) to a full filesystem path
public MapPath ( string relativePath ) : string
relativePath string App-relative path of the file
return string