C# Class Microsoft.R.Host.Client.Test.Mocks.RSessionMock

Inheritance: IRSession
Datei anzeigen Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
BeginInteractionAsync ( bool isVisible = true, CancellationToken cancellationToken = default(CancellationToken) ) : Task
BlobReadAllAsync ( ulong blobId, CancellationToken cancellationToken = default(CancellationToken) ) : Task
BlobReadAsync ( ulong blobId, long position, long count, CancellationToken cancellationToken = default(CancellationToken) ) : Task
BlobWriteAsync ( ulong blobId, byte data, long position, CancellationToken cancellationToken = default(CancellationToken) ) : Task
CancelAllAsync ( CancellationToken сancellationToken = default(CancellationToken) ) : Task
CreateBlobAsync ( CancellationToken ct = default(CancellationToken) ) : Task
DestroyBlobsAsync ( IEnumerable blobIds, CancellationToken ct = default(CancellationToken) ) : Task
DisableMutatedOnReadConsole ( ) : IDisposable
Dispose ( ) : void
EnsureHostStartedAsync ( RHostStartupInfo startupInfo, IRSessionCallback callback, int timeout = 3000, CancellationToken cancellationToken = default(CancellationToken) ) : Task
EvaluateAsync ( string expression, REvaluationKind kind, CancellationToken ct = default(CancellationToken) ) : Task
FlushLog ( ) : void
GetBlobSizeAsync ( ulong blobId, CancellationToken cancellationToken = default(CancellationToken) ) : Task
RestartHostAsync ( ) : Task
SetBlobSizeAsync ( ulong blobId, long size, CancellationToken cancellationToken = default(CancellationToken) ) : Task
StartHostAsync ( RHostStartupInfo startupInfo, IRSessionCallback callback, int timeout = 3000, CancellationToken cancellationToken = default(CancellationToken) ) : Task
StopHostAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task

Method Details

BeginInteractionAsync() public method

public BeginInteractionAsync ( bool isVisible = true, CancellationToken cancellationToken = default(CancellationToken) ) : Task
isVisible bool
cancellationToken System.Threading.CancellationToken
return Task

BlobReadAllAsync() public method

public BlobReadAllAsync ( ulong blobId, CancellationToken cancellationToken = default(CancellationToken) ) : Task
blobId ulong
cancellationToken System.Threading.CancellationToken
return Task

BlobReadAsync() public method

public BlobReadAsync ( ulong blobId, long position, long count, CancellationToken cancellationToken = default(CancellationToken) ) : Task
blobId ulong
position long
count long
cancellationToken System.Threading.CancellationToken
return Task

BlobWriteAsync() public method

public BlobWriteAsync ( ulong blobId, byte data, long position, CancellationToken cancellationToken = default(CancellationToken) ) : Task
blobId ulong
data byte
position long
cancellationToken System.Threading.CancellationToken
return Task

CancelAllAsync() public method

public CancelAllAsync ( CancellationToken сancellationToken = default(CancellationToken) ) : Task
сancellationToken System.Threading.CancellationToken
return Task

CreateBlobAsync() public method

public CreateBlobAsync ( CancellationToken ct = default(CancellationToken) ) : Task
ct System.Threading.CancellationToken
return Task

DestroyBlobsAsync() public method

public DestroyBlobsAsync ( IEnumerable blobIds, CancellationToken ct = default(CancellationToken) ) : Task
blobIds IEnumerable
ct System.Threading.CancellationToken
return Task

DisableMutatedOnReadConsole() public method

public DisableMutatedOnReadConsole ( ) : IDisposable
return IDisposable

Dispose() public method

public Dispose ( ) : void
return void

EnsureHostStartedAsync() public method

public EnsureHostStartedAsync ( RHostStartupInfo startupInfo, IRSessionCallback callback, int timeout = 3000, CancellationToken cancellationToken = default(CancellationToken) ) : Task
startupInfo RHostStartupInfo
callback IRSessionCallback
timeout int
cancellationToken System.Threading.CancellationToken
return Task

EvaluateAsync() public method

public EvaluateAsync ( string expression, REvaluationKind kind, CancellationToken ct = default(CancellationToken) ) : Task
expression string
kind REvaluationKind
ct System.Threading.CancellationToken
return Task

FlushLog() public method

public FlushLog ( ) : void
return void

GetBlobSizeAsync() public method

public GetBlobSizeAsync ( ulong blobId, CancellationToken cancellationToken = default(CancellationToken) ) : Task
blobId ulong
cancellationToken System.Threading.CancellationToken
return Task

RestartHostAsync() public method

public RestartHostAsync ( ) : Task
return Task

SetBlobSizeAsync() public method

public SetBlobSizeAsync ( ulong blobId, long size, CancellationToken cancellationToken = default(CancellationToken) ) : Task
blobId ulong
size long
cancellationToken System.Threading.CancellationToken
return Task

StartHostAsync() public method

public StartHostAsync ( RHostStartupInfo startupInfo, IRSessionCallback callback, int timeout = 3000, CancellationToken cancellationToken = default(CancellationToken) ) : Task
startupInfo RHostStartupInfo
callback IRSessionCallback
timeout int
cancellationToken System.Threading.CancellationToken
return Task

StopHostAsync() public method

public StopHostAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
return Task