Example #1
0
        public Task TestConnectionAsync(IConnectionInfo connection, CancellationToken cancellationToken = default(CancellationToken))
        {
            var brokerConnectionInfo = (connection as IConnection)?.BrokerConnectionInfo
                                       ?? BrokerConnectionInfo.Create(_securityService, connection.Name, connection.Path, connection.RCommandLineArguments);

            return(_sessionProvider.TestBrokerConnectionAsync(connection.Name, brokerConnectionInfo, cancellationToken));
        }
Example #2
0
 public Task TestConnectionAsync(IConnectionInfo connection, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_sessionProvider.TestBrokerConnectionAsync(connection.Name, connection.Path, cancellationToken));
 }