File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
Connections.Abstractions/src
Kestrel/Transport.NamedPipes/test Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,20 @@ public sealed class NamedPipeEndPoint : EndPoint
1313{
1414 internal const string LocalComputerServerName = "." ;
1515
16+ /// <summary>
17+ /// Initializes a new instance of the <see cref="NamedPipeEndPoint"/> class.
18+ /// </summary>
19+ /// <param name="pipeName">The name of the pipe.</param>
20+ public NamedPipeEndPoint ( string pipeName ) : this ( pipeName , LocalComputerServerName )
21+ {
22+ }
23+
1624 /// <summary>
1725 /// Initializes a new instance of the <see cref="NamedPipeEndPoint"/> class.
1826 /// </summary>
1927 /// <param name="pipeName">The name of the pipe.</param>
2028 /// <param name="serverName">The name of the remote computer to connect to, or "." to specify the local computer.</param>
21- public NamedPipeEndPoint ( string pipeName , string serverName = LocalComputerServerName )
29+ public NamedPipeEndPoint ( string pipeName , string serverName )
2230 {
2331 ServerName = serverName ;
2432 PipeName = pipeName ;
Original file line number Diff line number Diff line change 11#nullable enable
2+ Microsoft.AspNetCore.Connections.Features.IConnectionNamedPipeFeature
3+ Microsoft.AspNetCore.Connections.Features.IConnectionNamedPipeFeature.NamedPipe.get -> System.IO.Pipes.NamedPipeServerStream!
24Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature
35Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void
46Microsoft.AspNetCore.Connections.IConnectionListenerFactorySelector
57Microsoft.AspNetCore.Connections.IConnectionListenerFactorySelector.CanBind(System.Net.EndPoint! endpoint) -> bool
8+ Microsoft.AspNetCore.Connections.NamedPipeEndPoint
9+ Microsoft.AspNetCore.Connections.NamedPipeEndPoint.NamedPipeEndPoint(string! pipeName) -> void
10+ Microsoft.AspNetCore.Connections.NamedPipeEndPoint.NamedPipeEndPoint(string! pipeName, string! serverName) -> void
11+ Microsoft.AspNetCore.Connections.NamedPipeEndPoint.PipeName.get -> string!
12+ Microsoft.AspNetCore.Connections.NamedPipeEndPoint.ServerName.get -> string!
13+ override Microsoft.AspNetCore.Connections.NamedPipeEndPoint.Equals(object? obj) -> bool
14+ override Microsoft.AspNetCore.Connections.NamedPipeEndPoint.GetHashCode() -> int
15+ override Microsoft.AspNetCore.Connections.NamedPipeEndPoint.ToString() -> string!
Original file line number Diff line number Diff line change 33
44using System . IO . Pipes ;
55using Microsoft . AspNetCore . Connections ;
6- using Microsoft . AspNetCore . Server . Kestrel . Transport . NamedPipes . Internal ;
76using Microsoft . AspNetCore . Testing ;
87using Microsoft . Extensions . Logging ;
98
@@ -85,7 +84,7 @@ public async Task AcceptAsync_HitBacklogLimit_ClientConnectionsSuccessfullyAccep
8584
8685 var clientStream = NamedPipeTestHelpers . CreateClientStream ( connectionListener . EndPoint ) ;
8786 var connectTask = clientStream . ConnectAsync ( ) ;
88-
87+
8988 clients . Add ( new ClientStreamContext ( clientStream , connectTask ) ) ;
9089
9190 try
You can’t perform that action at this time.
0 commit comments