C# Class Microsoft.R.Components.ConnectionManager.Implementation.ConnectionManager

Inheritance: IConnectionManager
Exibir arquivo Open project: Microsoft/RTVS

Public Methods

Method Description
AddOrUpdateConnection ( string name, string path, string rCommandLineArguments, bool isUserCreated ) : IConnection
ConnectAsync ( IConnectionInfo connection, CancellationToken cancellationToken = default(CancellationToken) ) : Task
ConnectionManager ( IStatusBar statusBar, IRSettings settings, IRInteractiveWorkflow interactiveWorkflow ) : System
Dispose ( ) : void
GetOrAddConnection ( string name, string path, string rCommandLineArguments, bool isUserCreated ) : IConnection
GetOrCreateVisualComponent ( int instanceId ) : IConnectionManagerVisualComponent
ReconnectAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
TestConnectionAsync ( IConnectionInfo connection, CancellationToken cancellationToken = default(CancellationToken) ) : Task
TryConnectToPreviouslyUsedAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
TryRemove ( string name ) : bool

Private Methods

Method Description
ActiveWindowChanged ( object sender, ActiveWindowChangedEventArgs eventArgs ) : void
AddToStatusBar ( FrameworkElement element, object dataContext ) : void
BrokerStateChanged ( object sender, BrokerStateChangedEventArgs eventArgs ) : void
CompleteInitializationAsync ( ) : Task
CreateConnection ( string name, string path, string rCommandLineArguments, bool isUserCreated ) : IConnection
CreateConnectionList ( ) : IConnection>.Dictionary
GetConnectionsFromSettings ( ) : IConnection>.Dictionary
GetOrCreateConnection ( string name, string path, string rCommandLineArguments, bool isUserCreated ) : IConnection
IsRemoteConnection ( string path ) : bool
IsValidLocalConnection ( string name, string path ) : bool
PickBestLocalRConnection ( ICollection connections, ICollection localEngines ) : IConnection
SaveActiveConnectionToSettings ( ) : void
SaveConnectionsToSettings ( ) : void
TrySwitchBrokerAsync ( IConnection connection, CancellationToken cancellationToken = default(CancellationToken) ) : Task
TrySwitchBrokerAsync ( IConnectionInfo info, CancellationToken cancellationToken = default(CancellationToken) ) : Task
UpdateActiveConnection ( ) : void
UpdateConnectionFactory ( IConnection oldConnection, IConnection newConnection ) : IConnection
UpdateRecentConnections ( bool save = true ) : void

Method Details

AddOrUpdateConnection() public method

public AddOrUpdateConnection ( string name, string path, string rCommandLineArguments, bool isUserCreated ) : IConnection
name string
path string
rCommandLineArguments string
isUserCreated bool
return IConnection

ConnectAsync() public method

public ConnectAsync ( IConnectionInfo connection, CancellationToken cancellationToken = default(CancellationToken) ) : Task
connection IConnectionInfo
cancellationToken System.Threading.CancellationToken
return Task

ConnectionManager() public method

public ConnectionManager ( IStatusBar statusBar, IRSettings settings, IRInteractiveWorkflow interactiveWorkflow ) : System
statusBar IStatusBar
settings IRSettings
interactiveWorkflow IRInteractiveWorkflow
return System

Dispose() public method

public Dispose ( ) : void
return void

GetOrAddConnection() public method

public GetOrAddConnection ( string name, string path, string rCommandLineArguments, bool isUserCreated ) : IConnection
name string
path string
rCommandLineArguments string
isUserCreated bool
return IConnection

GetOrCreateVisualComponent() public method

public GetOrCreateVisualComponent ( int instanceId ) : IConnectionManagerVisualComponent
instanceId int
return IConnectionManagerVisualComponent

ReconnectAsync() public method

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

TestConnectionAsync() public method

public TestConnectionAsync ( IConnectionInfo connection, CancellationToken cancellationToken = default(CancellationToken) ) : Task
connection IConnectionInfo
cancellationToken System.Threading.CancellationToken
return Task

TryConnectToPreviouslyUsedAsync() public method

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

TryRemove() public method

public TryRemove ( string name ) : bool
name string
return bool