public BrokerConnectionInfo(string name, IRCallbacks callbacks, string rCommandLineArguments = null, int timeout = 3000, bool preserveSessionData = false) {
     Name = name;
     Callbacks = callbacks ?? _nullCallbacks;
     RCommandLineArguments = rCommandLineArguments;
     Timeout = timeout;
     PreserveSessionData = preserveSessionData;
 }
 public async Task <RHost> ConnectAsync(string name, IRCallbacks callbacks, string rCommandLineArguments = null, int timeout = 3000,
                                        CancellationToken cancellationToken = default(CancellationToken), ReentrancyToken reentrancyToken = default(ReentrancyToken))
 {
     using (await _connectArwl.ReaderLockAsync(cancellationToken, reentrancyToken)) {
         return(await _broker.ConnectAsync(name, callbacks, rCommandLineArguments, timeout, cancellationToken));
     }
 }
        public override async Task <RHost> ConnectAsync(string name, IRCallbacks callbacks, string rCommandLineArguments = null, int timeout = 3000,
                                                        CancellationToken cancellationToken = default(CancellationToken), ReentrancyToken reentrancyToken = default(ReentrancyToken))
        {
            await EnsureBrokerStartedAsync();

            return(await base.ConnectAsync(name, callbacks, rCommandLineArguments, timeout, cancellationToken));
        }
Exemple #4
0
 public BrokerConnectionInfo(string name, IRCallbacks callbacks, string rCommandLineArguments = null, int timeout = 3000, bool preserveSessionData = false)
 {
     Name                  = name;
     Callbacks             = callbacks ?? _nullCallbacks;
     RCommandLineArguments = rCommandLineArguments;
     Timeout               = timeout;
     PreserveSessionData   = preserveSessionData;
 }
Exemple #5
0
 public HostConnectionInfo(string name, IRCallbacks callbacks, bool useRHostCommandLineArguments = false, int timeout = 3000, bool preserveSessionData = false)
 {
     Name      = name;
     Callbacks = callbacks ?? _nullCallbacks;
     UseRHostCommandLineArguments = useRHostCommandLineArguments;
     Timeout             = timeout;
     PreserveSessionData = preserveSessionData;
 }
Exemple #6
0
        public RHost(string name, IRCallbacks callbacks) {
            Check.ArgumentStringNullOrEmpty(nameof(name), name);

            _callbacks = callbacks;
            _name = name;

            _fileLogWriter = FileLogWriter.InTempFolder("Microsoft.R.Host.Client" + "_" + name);
            _log = new LinesLog(_fileLogWriter);
        }
Exemple #7
0
        public RHost(string name, IRCallbacks callbacks, IMessageTransport transport, IActionLog log, CancellationTokenSource cts)
        {
            Check.ArgumentStringNullOrEmpty(nameof(name), name);

            _callbacks = callbacks;
            _transport = transport;
            _log       = log;
            _cts       = cts;
        }
Exemple #8
0
        public RHost(string name, IRCallbacks callbacks, IMessageTransport transport, IActionLog log) {
            Check.ArgumentStringNullOrEmpty(nameof(name), name);

            _name = name;
            _callbacks = callbacks;
            _transport = transport;
            _log = log;
            _cts = new CancellationTokenSource();
            _cts.Token.Register(() => { _log.RHostProcessExited(); });
        }
Exemple #9
0
        public RHost(string name, IRCallbacks callbacks)
        {
            Check.ArgumentStringNullOrEmpty(nameof(name), name);

            _callbacks = callbacks;
            _name      = name;

            _fileLogWriter = FileLogWriter.InTempFolder("Microsoft.R.Host.Client" + "_" + name);
            _log           = new LinesLog(_fileLogWriter);
        }
Exemple #10
0
        public RHost(string name, IRCallbacks callbacks, IMessageTransport transport, IActionLog log)
        {
            Check.ArgumentStringNullOrEmpty(nameof(name), name);

            Name       = name;
            _callbacks = callbacks;
            _transport = transport;
            Log        = log;
            _cts       = new CancellationTokenSource();
            _cts.Token.Register(() => { Log.RHostProcessExited(); });
        }
Exemple #11
0
        public RHost(string name, IRCallbacks callbacks, IMessageTransport transport, CancellationTokenSource cts)
        {
            Check.ArgumentStringNullOrEmpty(nameof(name), name);

            _callbacks = callbacks;
            _transport = transport;
            _cts       = cts;

            _fileLogWriter = FileLogWriter.InTempFolder("Microsoft.R.Host.Client" + "_" + name);
            _log           = new LinesLog(_fileLogWriter);
        }
 public Task <RHost> ConnectAsync(string name, IRCallbacks callbacks, string rCommandLineArguments, int timeout = 3000, CancellationToken cancellationToken = new CancellationToken())
 => _hostConnector.ConnectAsync(name, callbacks, rCommandLineArguments, timeout, cancellationToken);
Exemple #13
0
 public Task <RHost> ConnectAsync(string name, IRCallbacks callbacks, string rCommandLineArguments = null, int timeout = 3000, CancellationToken cancellationToken = new CancellationToken()) => Result;
 public Task <RHost> ConnectAsync(string name, IRCallbacks callbacks, string rCommandLineArguments = null, int timeout = 3000, CancellationToken cancellationToken = new CancellationToken())
 {
     throw new System.NotImplementedException();
 }