C# Class Microsoft.R.Components.InteractiveWorkflow.Implementation.RSessionCallback

Inheritance: IRSessionCallback
Datei anzeigen Open project: Microsoft/RTVS

Public Methods

Method Description
CranUrlFromName ( string mirrorName ) : string

Given CRAN mirror name returns URL

Locator ( System.Guid deviceId, CancellationToken ct ) : Task
Plot ( PlotMessage plot, CancellationToken ct ) : System.Threading.Tasks.Task

Displays R plot in the host app-provided window

PlotDeviceCreate ( System.Guid deviceId, CancellationToken ct ) : Task
PlotDeviceDestroy ( System.Guid deviceId, CancellationToken ct ) : System.Threading.Tasks.Task
RSessionCallback ( IInteractiveWindow interactiveWindow, IRSession session, IRSettings settings, ICoreShell coreShell, IFileSystem fileSystem ) : System
ReadUserInput ( string prompt, int maximumLength, CancellationToken ct ) : Task
SaveFileAsync ( string remoteFileName, string localPath, byte data, CancellationToken cancellationToken ) : Task
ShowErrorMessage ( string message, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Tasks.Task

Displays error message in the host-specific UI

ShowHelpAsync ( string url, CancellationToken cancellationToken ) : System.Threading.Tasks.Task

Displays R help URL in a browser on in the host app-provided window

ShowMessageAsync ( string message, MessageButtons buttons, CancellationToken cancellationToken ) : Task

Displays message with specified buttons in a host-specific UI

ViewFile ( string fileName, string tabName, bool deleteFile, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Tasks.Task
ViewLibraryAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Tasks.Task
ViewObjectAsync ( string expression, string title, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Tasks.Task

Method Details

CranUrlFromName() public method

Given CRAN mirror name returns URL
public CranUrlFromName ( string mirrorName ) : string
mirrorName string
return string

Locator() public method

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

Plot() public method

Displays R plot in the host app-provided window
public Plot ( PlotMessage plot, CancellationToken ct ) : System.Threading.Tasks.Task
plot Microsoft.R.Host.Client.PlotMessage
ct System.Threading.CancellationToken
return System.Threading.Tasks.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 ) : System.Threading.Tasks.Task
deviceId System.Guid
ct System.Threading.CancellationToken
return System.Threading.Tasks.Task

RSessionCallback() public method

public RSessionCallback ( IInteractiveWindow interactiveWindow, IRSession session, IRSettings settings, ICoreShell coreShell, IFileSystem fileSystem ) : System
interactiveWindow IInteractiveWindow
session IRSession
settings IRSettings
coreShell ICoreShell
fileSystem IFileSystem
return System

ReadUserInput() public method

public ReadUserInput ( string prompt, int maximumLength, CancellationToken ct ) : Task
prompt string
maximumLength int
ct System.Threading.CancellationToken
return Task

SaveFileAsync() public method

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

ShowErrorMessage() public method

Displays error message in the host-specific UI
public ShowErrorMessage ( string message, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Tasks.Task
message string
cancellationToken System.Threading.CancellationToken
return System.Threading.Tasks.Task

ShowHelpAsync() public method

Displays R help URL in a browser on in the host app-provided window
public ShowHelpAsync ( string url, CancellationToken cancellationToken ) : System.Threading.Tasks.Task
url string
cancellationToken CancellationToken
return System.Threading.Tasks.Task

ShowMessageAsync() public method

Displays message with specified buttons in a host-specific UI
public ShowMessageAsync ( string message, MessageButtons buttons, CancellationToken cancellationToken ) : Task
message string
buttons MessageButtons
cancellationToken CancellationToken
return Task

ViewFile() public method

public ViewFile ( string fileName, string tabName, bool deleteFile, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Tasks.Task
fileName string
tabName string
deleteFile bool
cancellationToken CancellationToken
return System.Threading.Tasks.Task

ViewLibraryAsync() public method

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

ViewObjectAsync() public method

public ViewObjectAsync ( string expression, string title, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Tasks.Task
expression string
title string
cancellationToken CancellationToken
return System.Threading.Tasks.Task