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