not working

This commit is contained in:
Matthias Heil
2026-03-31 18:48:55 +02:00
parent ac7149fb9b
commit 83f8031862
12 changed files with 215 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
using System.IO;
namespace NamedPipes
{
// Contains the method executed in the context of the impersonated user
public class ReadFileToStream
{
private readonly string fn;
private readonly StreamString ss;
public ReadFileToStream(StreamString str, string filename)
{
fn = filename;
ss = str;
}
public void Start()
{
string contents = File.ReadAllText(fn);
ss.WriteString(contents);
}
}
}