Exemple #1
0
        public static void Test()
        {
            if (pipeClient == null)
            {
                pipeClient =
                    new NamedPipeClientStream(".", "MobiusSpotfirePipe",
                                              PipeDirection.InOut, PipeOptions.None,
                                              TokenImpersonationLevel.Impersonation);

                pipeClient.Connect();

                ss = new StreamString(pipeClient);
            }

            ss.WriteString("Command...");
            string commandResult = ss.ReadString();

            //pipeClient.Close();
            return;
        }
Exemple #2
0
 public ReadFileToStream(StreamString str, string filename)
 {
     fn = filename;
     ss = str;
 }