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

Inheritance: IRCallbacks
ファイルを表示 Open project: Microsoft/RTVS

Public Methods

Method Description
Busy ( bool which, CancellationToken ct ) : Task
Connected ( string rVersion ) : Task
DirectoryChanged ( ) : void
Disconnected ( ) : Task
Dispose ( ) : void
Locator ( System.Guid deviceId, CancellationToken ct ) : Task
PackagesInstalled ( ) : void
PackagesRemoved ( ) : void
Plot ( PlotMessage plot, CancellationToken ct ) : Task
PlotDeviceCreate ( System.Guid deviceId, CancellationToken ct ) : Task
PlotDeviceDestroy ( System.Guid deviceId, CancellationToken ct ) : Task
ReadConsole ( IReadOnlyList contexts, string prompt, int len, bool addToHistory, CancellationToken ct ) : Task
SaveFileAsync ( string remotePath, string localPath, byte data, CancellationToken cancellationToken ) : Task
ShowDialog ( IReadOnlyList contexts, string s, MessageButtons buttons, CancellationToken ct ) : Task

Called when R wants to display generic Windows MessageBox. Graph app may call Win32 API directly rather than going via R API callbacks.

ShowFile ( string fileName, string tabName, bool deleteFile, CancellationToken cancellationToken ) : Task
ShowMessage ( string s, CancellationToken ct ) : Task
Shutdown ( bool savedRData ) : Task
ViewLibrary ( CancellationToken cancellationToken ) : Task
ViewObject ( string x, string title, CancellationToken cancellationToken ) : Task
WebBrowser ( string url, CancellationToken ct ) : Task
WriteConsoleEx ( string buf, OutputType otype, CancellationToken ct ) : Task
YesNoCancel ( IReadOnlyList contexts, string s, CancellationToken ct ) : Task

Called as a result of R calling R API 'YesNoCancel' callback

Private Methods

Method Description
Console_CancelKeyPress ( object sender, ConsoleCancelEventArgs e ) : void
Main ( string args ) : void
ReadLineAsync ( string prompt, CancellationToken ct ) : Task

Method Details

Busy() public method

public Busy ( bool which, CancellationToken ct ) : Task
which bool
ct System.Threading.CancellationToken
return Task

Connected() public method

public Connected ( string rVersion ) : Task
rVersion string
return Task

DirectoryChanged() public method

public DirectoryChanged ( ) : void
return void

Disconnected() public method

public Disconnected ( ) : Task
return Task

Dispose() public method

public Dispose ( ) : void
return void

Locator() public method

public Locator ( System.Guid deviceId, CancellationToken ct ) : Task
deviceId System.Guid
ct System.Threading.CancellationToken
return Task

PackagesInstalled() public method

public PackagesInstalled ( ) : void
return void

PackagesRemoved() public method

public PackagesRemoved ( ) : void
return void

Plot() public method

public Plot ( PlotMessage plot, CancellationToken ct ) : Task
plot PlotMessage
ct System.Threading.CancellationToken
return Task

PlotDeviceCreate() public method

public PlotDeviceCreate ( System.Guid deviceId, CancellationToken ct ) : Task
deviceId System.Guid
ct System.Threading.CancellationToken
return Task

PlotDeviceDestroy() public method

public PlotDeviceDestroy ( System.Guid deviceId, CancellationToken ct ) : Task
deviceId System.Guid
ct System.Threading.CancellationToken
return Task

ReadConsole() public method

public ReadConsole ( IReadOnlyList contexts, string prompt, int len, bool addToHistory, CancellationToken ct ) : Task
contexts IReadOnlyList
prompt string
len int
addToHistory bool
ct System.Threading.CancellationToken
return Task

SaveFileAsync() public method

public SaveFileAsync ( string remotePath, string localPath, byte data, CancellationToken cancellationToken ) : Task
remotePath string
localPath string
data byte
cancellationToken System.Threading.CancellationToken
return Task

ShowDialog() public method

Called when R wants to display generic Windows MessageBox. Graph app may call Win32 API directly rather than going via R API callbacks.
public ShowDialog ( IReadOnlyList contexts, string s, MessageButtons buttons, CancellationToken ct ) : Task
contexts IReadOnlyList
s string
buttons MessageButtons
ct System.Threading.CancellationToken
return Task

ShowFile() public method

public ShowFile ( string fileName, string tabName, bool deleteFile, CancellationToken cancellationToken ) : Task
fileName string
tabName string
deleteFile bool
cancellationToken System.Threading.CancellationToken
return Task

ShowMessage() public method

public ShowMessage ( string s, CancellationToken ct ) : Task
s string
ct System.Threading.CancellationToken
return Task

Shutdown() public method

public Shutdown ( bool savedRData ) : Task
savedRData bool
return Task

ViewLibrary() public method

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

ViewObject() public method

public ViewObject ( string x, string title, CancellationToken cancellationToken ) : Task
x string
title string
cancellationToken System.Threading.CancellationToken
return Task

WebBrowser() public method

public WebBrowser ( string url, CancellationToken ct ) : Task
url string
ct System.Threading.CancellationToken
return Task

WriteConsoleEx() public method

public WriteConsoleEx ( string buf, OutputType otype, CancellationToken ct ) : Task
buf string
otype OutputType
ct System.Threading.CancellationToken
return Task

YesNoCancel() public method

Called as a result of R calling R API 'YesNoCancel' callback
public YesNoCancel ( IReadOnlyList contexts, string s, CancellationToken ct ) : Task
contexts IReadOnlyList
s string
ct System.Threading.CancellationToken
return Task