C# Class Microsoft.R.Host.Broker.Pipes.MessagePipe

显示文件 Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
ConnectClient ( ) : IMessagePipeEnd

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.

ConnectHost ( int pid ) : IMessagePipeEnd

Creates and returns the host end of the pipe.

Can only be called once for a given instance of MessagePipe. The returned object is owned by the pipe, and should not be disposed.

MessagePipe ( ILogger logger ) : System

Private Methods

Method Description
LogMessage ( MessageOrigin origin, byte messageData, bool replay = false ) : void

Method Details

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

ConnectHost() public method

Creates and returns the host end of the pipe.
Can only be called once for a given instance of MessagePipe. The returned object is owned by the pipe, and should not be disposed.
public ConnectHost ( int pid ) : IMessagePipeEnd
pid int
return IMessagePipeEnd

MessagePipe() public method

public MessagePipe ( ILogger logger ) : System
logger ILogger
return System