Microsoft.R.Host.Broker.Pipes.MessagePipe.ConnectClient C# (CSharp) Method

ConnectClient() public method

Creates and returns the client end of the pipe.
Can be called multiple times for a given instance of MessagePipe, but only one end can be active at once. The existing end must be disposed before calling this method to create a new one.
public ConnectClient ( ) : IMessagePipeEnd
return IMessagePipeEnd
        public IMessagePipeEnd ConnectClient() {
            if (Interlocked.CompareExchange(ref _clientEnd, new ClientEnd(this), null) != null) {
                throw new InvalidOperationException(Resources.Exception_PipeHasClientEnd);
            }

            return _clientEnd;
        }