Beispiel #1
0
        public IOwnedMessagePipeEnd ConnectClient()
        {
            if (_pipe == null)
            {
                throw new InvalidOperationException("Host process not started");
            }

            return(_pipe.ConnectClient());
        }
Beispiel #2
0
        public IMessagePipeEnd ConnectClient()
        {
            _sessionLogger.LogTrace("Connecting client to message pipe for session '{0}'.", Id);

            if (_pipe == null)
            {
                _sessionLogger.LogError("Session '{0}' already has a client pipe connected.", Id);
                throw new InvalidOperationException(Resources.Error_RHostFailedToStart.FormatInvariant(Id));
            }

            return(_pipe.ConnectClient());
        }