예제 #1
0
파일: RHost.cs 프로젝트: Microsoft/RTVS
        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(); });
        }
예제 #2
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(); });
        }