Ejemplo n.º 1
0
        public string LaunchProcess(int ProcId, int workflowId, String clientId)
        {
            if (npcsPipeClient == null)
            {
                npcsPipeClient = new NamedPipeClientStream("PNPU_PIPE");
                npcsPipeClient.Connect();
            }

            if (ssStreamString == null)
            {
                ssStreamString = new StreamString(npcsPipeClient);
            }
            ssStreamString.WriteString(ProcId + "/" + workflowId + "/" + clientId);


            string result = ssStreamString.ReadString();

            return(result);
        }
Ejemplo n.º 2
0
        public string LaunchProcess(string ProcFile)
        {
            if (npcsPipeClient == null)
            {
                npcsPipeClient = new NamedPipeClientStream("PNPU_PIPE");
                npcsPipeClient.Connect();
                ssStreamString = new StreamString(npcsPipeClient);
            }

            ssStreamString.WriteString(ProcFile);

            return(ssStreamString.ReadString());
        }