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)); }
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; }
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); }
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; }
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(); }); }
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(); }); }
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);
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(); }