public IMessageChannel Create(MessageChannelType channelType) { if (channelType == MessageChannelType.Pipe) { var pipeName = PipeMessageChannel.GetPipeName(_csNodeId, _stitchInstanceId); return(new StitchPipeMessageChannel(pipeName)); } return(new StdioMessageChannel()); }
public IMessageChannel Create(MessageChannelType channelType, System.Diagnostics.Process process) { if (channelType == MessageChannelType.Pipe) { var pipeName = PipeMessageChannel.GetPipeName(_csNodeId, _stitchInstanceId); return(new CorePipeMessageChannel(pipeName)); } return(new StdioMessageChannel(process.StandardOutput, process.StandardInput)); }