Skip to content

Commit

Permalink
make the IWebSocketServer interface internal
Browse files Browse the repository at this point in the history
and IVT for Microsoft.Diagnostics.WebSocketServer that holds the implementation
  • Loading branch information
lambdageek committed Oct 20, 2022
1 parent 8f6c2bd commit 4b2398c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<InternalsVisibleTo Include="dotnet-trace" />
<InternalsVisibleTo Include="Microsoft.Diagnostics.Monitoring" />
<InternalsVisibleTo Include="Microsoft.Diagnostics.Monitoring.EventPipe" />
<InternalsVisibleTo Include="Microsoft.Diagnostics.WebSocketServer" />
<!-- Temporary until Diagnostic Apis are finalized-->
<InternalsVisibleTo Include="Microsoft.Diagnostics.Monitoring.WebApi" />
<InternalsVisibleTo Include="Microsoft.Diagnostics.NETCore.Client.UnitTests" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.Diagnostics.NETCore.Client.WebSocketServer;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Microsoft.Diagnostics.NETCore.Client.WebSocketServer;

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

0 comments on commit 4b2398c

Please sign in to comment.