C# Class EA.Iws.Web.Infrastructure.FileAccess

Inheritance: IFileAccess
ファイルを表示 Open project: EnvironmentAgency/prsd-iws

Public Methods

Method Description
DeleteFile ( string filePath ) : void
FileExists ( string filePath ) : bool
MapPath ( string virtualPath ) : string
WriteFile ( string fileName, byte fileBytes ) : void
WriteFileAsync ( string fileName, byte fileBytes ) : System.Threading.Tasks.Task

Private Methods

Method Description
EnsureDirectoryExists ( string fileName ) : void

Method Details

DeleteFile() public method

public DeleteFile ( string filePath ) : void
filePath string
return void

FileExists() public method

public FileExists ( string filePath ) : bool
filePath string
return bool

MapPath() public method

public MapPath ( string virtualPath ) : string
virtualPath string
return string

WriteFile() public method

public WriteFile ( string fileName, byte fileBytes ) : void
fileName string
fileBytes byte
return void

WriteFileAsync() public method

public WriteFileAsync ( string fileName, byte fileBytes ) : System.Threading.Tasks.Task
fileName string
fileBytes byte
return System.Threading.Tasks.Task