Test projects are working.
This commit is contained in:
12
TestClient/Program.cs
Normal file
12
TestClient/Program.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Text;
|
||||
using NamedPipes;
|
||||
var count = 0;
|
||||
var message = "Hello World!".ToCharArray();
|
||||
while (true)
|
||||
{
|
||||
var pipeClient = new NamedPipeClient("testPipe",@".\","TestServer");
|
||||
Thread.Sleep(100);
|
||||
pipeClient.SetMessageAsync($"Hello from TestClient " + count++).GetAwaiter().GetResult();
|
||||
pipeClient.SetDebugObjectAsync(new DebugObject{Type = typeof(string).FullName,Data = Encoding.GetEncoding("UTF-8").GetBytes(message)}).GetAwaiter().GetResult();
|
||||
pipeClient.Dispose();
|
||||
}
|
||||
Reference in New Issue
Block a user