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();
|
||||
}
|
||||
14
TestClient/TestClient.csproj
Normal file
14
TestClient/TestClient.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\NamedPipes\NamedPipes.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user