C# Class YumaPos.UploadFileServer.Services.FileOperationService

Inheritance: IFileOperationService
Mostrar archivo Open project: yumapos/Yumasoft-UploadServer

Public Methods

Method Description
AddFile ( byte data ) : Task
CheckImageAndGetContentType ( byte data ) : ImageInfo
FileOperationService ( ) : System
GetFile ( System.Guid id ) : Task
GetImage ( System.Guid id, int width, int height, string resizeType ) : Task
GetOriginalImage ( System.Guid id ) : Task
RemoveFile ( System.Guid fileId ) : void

Private Methods

Method Description
CheckResolutionAndSize ( int width, int height, int length ) : void
GetContentType ( ImageFormat rawFormat ) : string
GetOrCreateCache ( System.Guid id, int width, int height, string resizeType ) : byte[]
ResizeImage ( byte data, int width, int height, string resizeType ) : byte[]

Method Details

AddFile() public method

public AddFile ( byte data ) : Task
data byte
return Task

CheckImageAndGetContentType() public method

public CheckImageAndGetContentType ( byte data ) : ImageInfo
data byte
return YumaPos.UploadFileServer.Infrastructure.Structure.ImageInfo

FileOperationService() public method

public FileOperationService ( ) : System
return System

GetFile() public method

public GetFile ( System.Guid id ) : Task
id System.Guid
return Task

GetImage() public method

public GetImage ( System.Guid id, int width, int height, string resizeType ) : Task
id System.Guid
width int
height int
resizeType string
return Task

GetOriginalImage() public method

public GetOriginalImage ( System.Guid id ) : Task
id System.Guid
return Task

RemoveFile() public method

public RemoveFile ( System.Guid fileId ) : void
fileId System.Guid
return void