Example #1
0
 public PipeIOModel(string inPipeTag, string outPipeTag)
 {
     inPipeID       = inPipeTag;
     outPipeID      = outPipeTag;
     pipeReaderTask = null;
     thisHandler    = null;
 }
Example #2
0
        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);
        }
Example #3
0
 public void SetReadHandler(ProcessWrapper.ProcessControlHandler clientHandler)
 {
     thisHandler = clientHandler;
 }
Example #4
0
 // 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;
 }
Example #5
0
 public PipeIOModel()
 {
     inPipeID       = outPipeID = null;
     pipeReaderTask = null;
     thisHandler    = null;
 }