C# 클래스 Microsoft.R.Host.Client.DataTransferSession

상속: IDisposable
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
CopyFileToRemoteTempAsync ( string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task

Copies file from local file path to Temp folder on the remote session.

DataTransferSession ( IRSession session, IFileSystem fs ) : System
Dispose ( ) : void
FetchAndDecompressBytesAsync ( IRBlobInfo blob, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task

Gets the data for a given blob (compressed) from R-Host and decompresses it. This method adds the blob for clean up by default.

FetchAndDecompressFileAsync ( IRBlobInfo blob, string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task

Gets the data for a given blob from R-Host. Decompresses it and saves the data to filePath. This method adds the blob for clean up by default.

FetchBytesAsync ( IRBlobInfo blob, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task

Gets the data for a given blob from R-Host. This method adds the blob for clean up by default.

FetchFileAsync ( IRBlobInfo blob, string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task

Gets the data for a given blob from R-Host. Saves the data to filePath. This method adds the blob for clean up by default.

FetchFileToLocalTempAsync ( string remoteRPath, string localRPath, CancellationToken cancellationToken ) : Task

Copies file from remote file path to downloads folder on the local session.

SendBytesAsync ( byte data, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task

Sends a block of data to R-Host by creating a new blob. This method adds the blob for clean up by default.

SendFileAsync ( string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task

Sends file to R-Host by creating a new blob. This method adds the blob for clean up by default.

메소드 상세

CopyFileToRemoteTempAsync() 공개 메소드

Copies file from local file path to Temp folder on the remote session.
public CopyFileToRemoteTempAsync ( string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task
filePath string Path to the file to be sent to remote session.
doCleanUp bool true to add blob upon transfer for cleanup on dispose, false to ignore it after transfer.
progress IProgress
cancellationToken System.Threading.CancellationToken
리턴 Task

DataTransferSession() 공개 메소드

public DataTransferSession ( IRSession session, IFileSystem fs ) : System
session IRSession
fs IFileSystem
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FetchAndDecompressBytesAsync() 공개 메소드

Gets the data for a given blob (compressed) from R-Host and decompresses it. This method adds the blob for clean up by default.
public FetchAndDecompressBytesAsync ( IRBlobInfo blob, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task
blob IRBlobInfo Blob from which the data is to be retrieved.
doCleanUp bool true to add blob upon transfer for cleanup on dispose, false to ignore it after transfer.
progress IProgress
cancellationToken System.Threading.CancellationToken
리턴 Task

FetchAndDecompressFileAsync() 공개 메소드

Gets the data for a given blob from R-Host. Decompresses it and saves the data to filePath. This method adds the blob for clean up by default.
public FetchAndDecompressFileAsync ( IRBlobInfo blob, string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task
blob IRBlobInfo Blob from which the data is to be retrieved.
filePath string Path to the file where the retrieved data will be written.
doCleanUp bool true to add blob upon transfer for cleanup on dispose, false to ignore it after transfer.
progress IProgress
cancellationToken System.Threading.CancellationToken
리턴 Task

FetchBytesAsync() 공개 메소드

Gets the data for a given blob from R-Host. This method adds the blob for clean up by default.
public FetchBytesAsync ( IRBlobInfo blob, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task
blob IRBlobInfo Blob from which the data is to be retrieved.
doCleanUp bool true to add blob upon transfer for cleanup on dispose, false to ignore it after transfer.
progress IProgress
cancellationToken System.Threading.CancellationToken
리턴 Task

FetchFileAsync() 공개 메소드

Gets the data for a given blob from R-Host. Saves the data to filePath. This method adds the blob for clean up by default.
public FetchFileAsync ( IRBlobInfo blob, string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task
blob IRBlobInfo Blob from which the data is to be retrieved.
filePath string Path to the file where the retrieved data will be written.
doCleanUp bool true to add blob upon transfer for cleanup on dispose, false to ignore it after transfer.
progress IProgress
cancellationToken System.Threading.CancellationToken
리턴 Task

FetchFileToLocalTempAsync() 공개 메소드

Copies file from remote file path to downloads folder on the local session.
public FetchFileToLocalTempAsync ( string remoteRPath, string localRPath, CancellationToken cancellationToken ) : Task
remoteRPath string
localRPath string
cancellationToken System.Threading.CancellationToken
리턴 Task

SendBytesAsync() 공개 메소드

Sends a block of data to R-Host by creating a new blob. This method adds the blob for clean up by default.
public SendBytesAsync ( byte data, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task
data byte Block of data to be sent.
doCleanUp bool /// true to add blob created upon transfer for cleanup on dispose, false to ignore it after transfer. ///
progress IProgress
cancellationToken System.Threading.CancellationToken
리턴 Task

SendFileAsync() 공개 메소드

Sends file to R-Host by creating a new blob. This method adds the blob for clean up by default.
public SendFileAsync ( string filePath, bool doCleanUp, IProgress progress, CancellationToken cancellationToken ) : Task
filePath string Path to the file to be sent to R-Host.
doCleanUp bool /// true to add blob created upon transfer for cleanup on dispose, false to ignore it after transfer. ///
progress IProgress
cancellationToken System.Threading.CancellationToken
리턴 Task