C# Class BenefitsAllocationUpload.Services.SftpService

Inheritance: ISftpService
Show file Open project: ucdavis/BenefitsAllocationUpload

Public Methods

Method Description
SftpService ( ) : System
UploadFile ( string filename, string schoolCode ) : void

Upload file to Accounting and Financial Services host for import into General Ledger Current Budget for Benefits Allocation.

UploadStream ( Stream dataStream, string filename, string schoolCode ) : void

Upload/write a stream to the Accounting and Financial Services SFTP server

Private Methods

Method Description
GetSftpClient ( string schoolCode = null ) : SftpClient

Method Details

SftpService() public method

public SftpService ( ) : System
return System

UploadFile() public method

Upload file to Accounting and Financial Services host for import into General Ledger Current Budget for Benefits Allocation.
public UploadFile ( string filename, string schoolCode ) : void
filename string Name of file to be uploaded
schoolCode string School Code of corresponding school
return void

UploadStream() public method

Upload/write a stream to the Accounting and Financial Services SFTP server
public UploadStream ( Stream dataStream, string filename, string schoolCode ) : void
dataStream Stream The data stream to be uploaded.
filename string The filename of the be assigned
schoolCode string The school code, defaults to "O1" (CAES).
return void