Skip to content

Commit 4b2398c

Browse files
committed
make the IWebSocketServer interface internal
and IVT for Microsoft.Diagnostics.WebSocketServer that holds the implementation
1 parent 8f6c2bd commit 4b2398c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<InternalsVisibleTo Include="dotnet-trace" />
3333
<InternalsVisibleTo Include="Microsoft.Diagnostics.Monitoring" />
3434
<InternalsVisibleTo Include="Microsoft.Diagnostics.Monitoring.EventPipe" />
35+
<InternalsVisibleTo Include="Microsoft.Diagnostics.WebSocketServer" />
3536
<!-- Temporary until Diagnostic Apis are finalized-->
3637
<InternalsVisibleTo Include="Microsoft.Diagnostics.Monitoring.WebApi" />
3738
<InternalsVisibleTo Include="Microsoft.Diagnostics.NETCore.Client.UnitTests" />

src/Microsoft.Diagnostics.NETCore.Client/WebSocketServer/IWebSocketServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Diagnostics.NETCore.Client.WebSocketServer;
1212

1313
// This interface abstracts the web socket server implementation used by dotnet-dsrouter
1414
// in order to avoid a dependency on ASP.NET in the client library.
15-
public interface IWebSocketServer
15+
internal interface IWebSocketServer
1616
{
1717
public Task StartServer(Uri uri, CancellationToken cancellationToken);
1818

src/Microsoft.Diagnostics.NETCore.Client/WebSocketServer/IWebSocketStreamAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Microsoft.Diagnostics.NETCore.Client.WebSocketServer;
55

66
// The streams returned by IWebSocketServer implement the usual .NET Stream class, but they also
77
// expose a way to check if the underlying websocket connection is still open.
8-
public interface IWebSocketStreamAdapter
8+
internal interface IWebSocketStreamAdapter
99
{
1010
public bool IsConnected { get; }
1111
}

0 commit comments

Comments
 (0)