C# Class FilesManagement.FileManager

Inheritance: IFileManager
Afficher le fichier Open project: LeagueOfDevelopers/LodCore

Méthodes publiques

Méthode Description
FileManager ( FileStorageSettings fileStorageSettings, IImageResizer imageResizer ) : Common.System
GetFile ( string fileName ) : Stream
GetImage ( string imageName ) : Stream
UploadFileAsync ( HttpContent content ) : Task
UploadImageAsync ( HttpContent content ) : Task

Private Methods

Méthode Description
CreateFoldersIfNeeded ( ) : void
GenerateRandomFileName ( string fileName ) : string
GetAnyFile ( string folderPath, string fileName ) : Stream
GetFileExtension ( string fileName ) : string
RenameFile ( string originalFullName, string newFileFullName ) : void
SaltFileNameWithCurrentDate ( string fileName ) : string
UploadAnyFileAsync ( HttpContent httpContent, string allowedExtensions, string folderPath ) : Task

Method Details

FileManager() public méthode

public FileManager ( FileStorageSettings fileStorageSettings, IImageResizer imageResizer ) : Common.System
fileStorageSettings FileStorageSettings
imageResizer IImageResizer
Résultat Common.System

GetFile() public méthode

public GetFile ( string fileName ) : Stream
fileName string
Résultat Stream

GetImage() public méthode

public GetImage ( string imageName ) : Stream
imageName string
Résultat Stream

UploadFileAsync() public méthode

public UploadFileAsync ( HttpContent content ) : Task
content System.Net.Http.HttpContent
Résultat Task

UploadImageAsync() public méthode

public UploadImageAsync ( HttpContent content ) : Task
content System.Net.Http.HttpContent
Résultat Task