How to specify PipeSecurity when using ListenNamedPipe #56443
-
Hi, I'm creating a prototype Windows service that should communicate with a client application over a named pipe using gRPC. On the service side, I use the I believe I need to configure the Here is the code I have, which doesn't work: var pipeSecurity = CreateSystemIOPipeSecurity();
builder.WebHost.UseNamedPipes(opts =>
{
opts.PipeSecurity = pipeSecurity;
opts.CurrentUserOnly = false;
});
builder.WebHost.ConfigureKestrel(serverOptions =>
{
serverOptions.ListenNamedPipe("TestManagement", listenOptions =>
{
listenOptions.Protocols = HttpProtocols.Http2;
});
}); Does anyone have any ideas on how I should proceed? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you show the CreateSystemIOPipeSecurity() function? |
Beta Was this translation helpful? Give feedback.
Yes, that doesn't work. I can't remember exactly why, but the WorldSid doesn't help.
The following works fine for me with NamedPipes, you can try it out: