C# Class TeamBins.Infrastrucutre.LocalFileSystemStorageHandler

Inheritance: IUploadHandler
Afficher le fichier Open project: kshyju/ProjectPlanningTool

Méthodes publiques

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

Private Methods

Méthode Description
GetFullUrl ( string prefix, string fileName ) : string

Method Details

IsValid() public méthode

public IsValid ( string fileName, string contentType ) : bool
fileName string
contentType string
Résultat bool

LocalFileSystemStorageHandler() public méthode

public LocalFileSystemStorageHandler ( IOptions settings, IHostingEnvironment hostingEnvironment ) : System
settings IOptions
hostingEnvironment IHostingEnvironment
Résultat System

UploadFile() public méthode

public UploadFile ( string fileName, string contentType, Stream stream ) : Task
fileName string
contentType string
stream Stream
Résultat Task