C# Класс 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.
Наследование: FileSystemBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AspNetFileSystem() публичный Метод

Initializes a new instance of the AspNetFileSystem class.
public AspNetFileSystem ( IHostingEnvironment hostingEnv ) : System.IO
hostingEnv IHostingEnvironment The ASP.NET 5 hosting environment
Результат System.IO

MapPath() публичный Метод

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
Результат string