C# Class Microsoft.R.Host.Client.RHost

Inheritance: IDisposable, IRExpressionEvaluator
Datei anzeigen Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
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 cancellationToken = default(CancellationToken) ) : Task

Cancels any ongoing evaluations or interaction processing.

CreateBlobAsync ( CancellationToken cancellationToken ) : Task
DestroyBlobsAsync ( IEnumerable ids, CancellationToken cancellationToken ) : Task
DetachCallback ( ) : void
DisconnectAsync ( ) : Task
Dispose ( ) : void
EvaluateAsync ( string expression, REvaluationKind kind, CancellationToken cancellationToken ) : Task
FlushLog ( ) : void
GetBlobSizeAsync ( ulong blobId, CancellationToken cancellationToken = default(CancellationToken) ) : Task
RHost ( string name, IRCallbacks callbacks, IMessageTransport transport, IActionLog log ) : System
RequestShutdownAsync ( bool saveRData ) : Task
Run ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
SetBlobSizeAsync ( ulong blobId, long size, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Private Methods

Method Description
CancelAll ( ) : void
CreateMessage ( string name, ulong requestId, Newtonsoft.Json.Linq.JArray json, byte blob = null ) : Message
CreateRequestMessage ( string name, Newtonsoft.Json.Linq.JArray json, byte blob = null ) : Message
DestroyBlobsAsyncWorker ( ulong ids, CancellationToken cancellationToken ) : Task
GetContexts ( Message message ) : Microsoft.R.Host.Client.RContext[]
GetRHostRunTask ( ) : Task
NotifyAsync ( string name, CancellationToken ct ) : Task
ProtocolError ( FormattableString fs, object message = null ) : Exception
ReadConsole ( Message request, CancellationToken ct ) : Task
ReceiveMessageAsync ( CancellationToken ct ) : Task
RespondAsync ( Message request, CancellationToken ct ) : Task
RunLoop ( CancellationToken loopCt ) : Task
RunWorker ( CancellationToken ct ) : Task
SendAsync ( Message message, CancellationToken ct ) : Task
ShowDialog ( Message request, MessageButtons buttons, CancellationToken ct ) : Task
UpdateCancelAllCtsLink ( CancellationTokenSource &cancelAllCtsLink, CancellationToken loopCt ) : CancellationToken

Method Details

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

Cancels any ongoing evaluations or interaction processing.
public CancelAllAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
return Task

CreateBlobAsync() public method

public CreateBlobAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

DestroyBlobsAsync() public method

public DestroyBlobsAsync ( IEnumerable ids, CancellationToken cancellationToken ) : Task
ids IEnumerable
cancellationToken System.Threading.CancellationToken
return Task

DetachCallback() public method

public DetachCallback ( ) : void
return void

DisconnectAsync() public method

public DisconnectAsync ( ) : Task
return Task

Dispose() public method

public Dispose ( ) : void
return void

EvaluateAsync() public method

public EvaluateAsync ( string expression, REvaluationKind kind, CancellationToken cancellationToken ) : Task
expression string
kind REvaluationKind
cancellationToken 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

RHost() public method

public RHost ( string name, IRCallbacks callbacks, IMessageTransport transport, IActionLog log ) : System
name string
callbacks IRCallbacks
transport IMessageTransport
log IActionLog
return System

RequestShutdownAsync() public method

public RequestShutdownAsync ( bool saveRData ) : Task
saveRData bool
return Task

Run() public method

public Run ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
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