Skip to content

Commit 8a3594b

Browse files
committed
Clean up
1 parent 048ed39 commit 8a3594b

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

src/Servers/Connections.Abstractions/src/NamedPipeEndPoint.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
#nullable enable
2+
Microsoft.AspNetCore.Connections.Features.IConnectionNamedPipeFeature
3+
Microsoft.AspNetCore.Connections.Features.IConnectionNamedPipeFeature.NamedPipe.get -> System.IO.Pipes.NamedPipeServerStream!
24
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature
35
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void
46
Microsoft.AspNetCore.Connections.IConnectionListenerFactorySelector
57
Microsoft.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!

src/Servers/Kestrel/Transport.NamedPipes/test/NamedPipeConnectionListenerTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System.IO.Pipes;
55
using Microsoft.AspNetCore.Connections;
6-
using Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.Internal;
76
using Microsoft.AspNetCore.Testing;
87
using 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

0 commit comments

Comments
 (0)