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; }
public ReadFileToStream(StreamString str, string filename) { fn = filename; ss = str; }