C# Class Microsoft.R.Host.Client.Session.RSessionProvider

Inheritance: IRSessionProvider
Exibir arquivo Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetOrCreate ( System.Guid guid ) : IRSession
GetSessions ( ) : IEnumerable
RSessionProvider ( ICoreServices services, IConsole callback = null ) : System
TestBrokerConnectionAsync ( string name, string path, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Task
TrySwitchBrokerAsync ( string name, string path = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Private Methods

Method Description
CompleteSwitchingBrokerAsync ( IEnumerable transactions, CancellationToken cancellationToken ) : System.Threading.Task
CompleteSwitchingBrokerAsync ( IRSessionSwitchBrokerTransaction transaction, CancellationToken cancellationToken ) : System.Threading.Task
ConnectToNewBrokerAsync ( IEnumerable transactions, CancellationToken cancellationToken ) : System.Threading.Task
ConnectToNewBrokerAsync ( IRSessionSwitchBrokerTransaction transaction, CancellationToken cancellationToken ) : System.Threading.Task
CreateBrokerClient ( string name, string path, CancellationToken cancellationToken ) : IBrokerClient
CreateRSession ( System.Guid guid ) : Microsoft.R.Host.Client.Session.RSession
DisposeSession ( System.Guid guid ) : void
OnBrokerChanged ( ) : void
OnHostLoadChanged ( HostLoad hostLoad ) : void
RSessionOnConnected ( object sender, RConnectedEventArgs e ) : void
ReconnectAsync ( CancellationToken cancellationToken ) : System.Threading.Task
StopSessionsAsync ( IEnumerable sessions, CancellationToken cancellationToken ) : System.Threading.Task
SwitchBrokerAsync ( CancellationToken cancellationToken ) : System.Threading.Task
SwitchSessionsAsync ( IReadOnlyCollection transactions, List sessionsToStop, CancellationToken cancellationToken ) : System.Threading.Task
TestBrokerConnectionWithRHost ( IBrokerClient brokerClient, CancellationToken cancellationToken ) : System.Threading.Task
UpdateHostLoadAsync ( CancellationToken ct = default(CancellationToken) ) : System.Threading.Task
UpdateHostLoadLoopAsync ( ) : System.Threading.Task
WhenAllCancelOnFailure ( IEnumerable transactions, Func taskFactory, CancellationToken cancellationToken ) : System.Threading.Task
WhenAllCancelOnFailure ( IEnumerable sessions, Func taskFactory, CancellationToken cancellationToken ) : System.Threading.Task

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetOrCreate() public method

public GetOrCreate ( System.Guid guid ) : IRSession
guid System.Guid
return IRSession

GetSessions() public method

public GetSessions ( ) : IEnumerable
return IEnumerable

RSessionProvider() public method

public RSessionProvider ( ICoreServices services, IConsole callback = null ) : System
services ICoreServices
callback IConsole
return System

TestBrokerConnectionAsync() public method

public TestBrokerConnectionAsync ( string name, string path, CancellationToken cancellationToken = default(CancellationToken) ) : System.Threading.Task
name string
path string
cancellationToken System.Threading.CancellationToken
return System.Threading.Task

TrySwitchBrokerAsync() public method

public TrySwitchBrokerAsync ( string name, string path = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
name string
path string
cancellationToken System.Threading.CancellationToken
return Task