Test projects are working.

This commit is contained in:
Matthias Heil
2026-04-01 12:46:48 +02:00
parent 83f8031862
commit cce0740f72
36 changed files with 472 additions and 431 deletions

12
TestClient/Program.cs Normal file
View 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();
}

View 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>