Skip to content

Commit 0475dfc

Browse files
committed
Kestrel named pipes
1 parent 2ddeeb6 commit 0475dfc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

aspnetcore/fundamentals/servers/kestrel/endpoints.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,14 @@ The following example configures an endpoint for HTTP/1.1, HTTP/2, and HTTP/3 co
581581

582582
:::code language="csharp" source="~/fundamentals/servers/kestrel/samples/6.x/KestrelSample/Snippets/Program.cs" id="snippet_ConfigureKestrelProtocols":::
583583

584+
## test Customize Kestrel named pipe endpoints
585+
586+
Kestrel's named pipe support includes advanced customization options. The [CreateNamedPipeServerStream](/dotnet/api/microsoft.aspnetcore.server.kestrel.transport.namedpipes.namedpipetransportoptions.createnamedpipeserverstream) property on the named pipe options allows pipes to be customized per-endpoint.
587+
588+
An example of where this is useful is a Kestrel app that requires two pipe endpoints with different [access security](/windows/win32/ipc/named-pipe-security-and-access-rights). The `CreateNamedPipeServerStream` option can be used to create pipes with custom security settings, depending on the pipe name.
589+
590+
:::code language="csharp" source="~/fundamentals/servers/kestrel/endpoints/samples/KestrelNamedEP/Program.cs" higlight="7-23":::
591+
584592
:::moniker-end
585593

586594
:::moniker range=">= aspnetcore-9.0"

0 commit comments

Comments
 (0)