public PipeIOModel(string inPipeTag, string outPipeTag) { inPipeID = inPipeTag; outPipeID = outPipeTag; pipeReaderTask = null; thisHandler = null; }
internal static IOModel IOModelFactory(IOType ioType, string args, ProcessWrapper.ProcessControlHandler handler) { IOModel outModel = null; switch (ioType) { case IOType.StdIO: outModel = new StdIOModel(); break; case IOType.PIPES: outModel = new PipeIOModel(); break; case IOType.QUEUES: outModel = new QueueIOModel(); break; } if (outModel != null) { outModel.BaseInit(args); outModel.SetReadHandler(handler); } return(outModel); }
public void SetReadHandler(ProcessWrapper.ProcessControlHandler clientHandler) { thisHandler = clientHandler; }
// this really should only tell the client what it should be listening to, right. // TypeID and clientID are pretty app-specific // and most of the actual IO should be deferred to this class, // (and mirrored on the client side...) if we're going to this trouble... public QueueIOModel() { thisHandler = null; }
public PipeIOModel() { inPipeID = outPipeID = null; pipeReaderTask = null; thisHandler = null; }