Skip to content

Commit 90c0915

Browse files
committed
Kestrel named pipes
1 parent 040d6f6 commit 90c0915

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

aspnetcore/fundamentals/servers/kestrel/endpoints.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,4 +588,17 @@ The following example configures an endpoint for HTTP/1.1, HTTP/2, and HTTP/3 co
588588

589589
:::moniker-end
590590

591+
:::moniker range=">= aspnetcore-9.0"
592+
593+
### Customize Kestrel named pipe endpoints
594+
595+
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.
596+
597+
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.
598+
599+
:::code language="csharp" source="~/fundamentals/servers/kestrel/endpoints/samples/KestrelNamedEP/Program.cs
600+
" higlight="7-23":::
601+
602+
:::moniker-end
603+
591604
[!INCLUDE [endpoints5-7](~/fundamentals/servers/kestrel/endpoints/includes/endpoints5-7.md)]

0 commit comments

Comments
 (0)