C# Class TeamBins.Infrastrucutre.LocalFileSystemStorageHandler

Inheritance: IUploadHandler
Show file Open project: kshyju/ProjectPlanningTool

Public Methods

Method Description
IsValid ( string fileName, string contentType ) : bool
LocalFileSystemStorageHandler ( IOptions settings, IHostingEnvironment hostingEnvironment ) : System
UploadFile ( string fileName, string contentType, Stream stream ) : Task

Private Methods

Method Description
GetFullUrl ( string prefix, string fileName ) : string

Method Details

IsValid() public method

public IsValid ( string fileName, string contentType ) : bool
fileName string
contentType string
return bool

LocalFileSystemStorageHandler() public method

public LocalFileSystemStorageHandler ( IOptions settings, IHostingEnvironment hostingEnvironment ) : System
settings IOptions
hostingEnvironment IHostingEnvironment
return System

UploadFile() public method

public UploadFile ( string fileName, string contentType, Stream stream ) : Task
fileName string
contentType string
stream Stream
return Task