C# Class BenefitsAllocationUpload.Services.FileService

Inheritance: IFileService
Show file Open project: ucdavis/BenefitsAllocationUpload

Public Methods

Method Description
FileService ( ISftpService sftpService, IBlobStorageService blobStorageService ) : System.Collections.Generic

GetFile ( string fileName ) : byte[]

Get a file from blob storage

ReadFile ( Stream stream ) : IList
ReadFile ( byte bytes ) : IList
WriteFile ( string fileName, string devarOrgCode, FeederSystemFixedLengthRecord transactionsArray ) : bool

Method Details

FileService() public method

public FileService ( ISftpService sftpService, IBlobStorageService blobStorageService ) : System.Collections.Generic
sftpService ISftpService
blobStorageService IBlobStorageService
return System.Collections.Generic

GetFile() public method

Get a file from blob storage
public GetFile ( string fileName ) : byte[]
fileName string
return byte[]

ReadFile() public method

public ReadFile ( Stream stream ) : IList
stream System.IO.Stream
return IList

ReadFile() public method

public ReadFile ( byte bytes ) : IList
bytes byte
return IList

WriteFile() public method

public WriteFile ( string fileName, string devarOrgCode, FeederSystemFixedLengthRecord transactionsArray ) : bool
fileName string
devarOrgCode string
transactionsArray BenefitsAllocationUpload.Models.FeederSystemFixedLengthRecord
return bool