예제 #1
0
 public IMessageChannel Create(MessageChannelType channelType)
 {
     if (channelType == MessageChannelType.Pipe)
     {
         var pipeName = PipeMessageChannel.GetPipeName(_csNodeId, _stitchInstanceId);
         return(new StitchPipeMessageChannel(pipeName));
     }
     return(new StdioMessageChannel());
 }
예제 #2
0
        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));
        }