mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
25 lines
577 B
C#
25 lines
577 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.IO.Pipes;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Debug.VSDebugEngine {
|
|
|
|
public class DebugWindows {
|
|
|
|
public static void Test(string aData) {
|
|
using (var xPipe = new NamedPipeClientStream(".", "CosmosDebugWindows", PipeDirection.Out)) {
|
|
xPipe.Connect();
|
|
using (var xWriter = new StreamWriter(xPipe)) {
|
|
xWriter.WriteLine(aData);
|
|
}
|
|
xPipe.Flush();
|
|
xPipe.WaitForPipeDrain();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|