File: WebSocketServer\IWebSocketServer.cs
Web Access
Project: src\src\diagnostics\src\Microsoft.Diagnostics.NETCore.Client\Microsoft.Diagnostics.NETCore.Client.csproj (Microsoft.Diagnostics.NETCore.Client)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.IO;
using System.Threading;
using System.Threading.Tasks;

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.
internal interface IWebSocketServer
{
    public Task<Stream> AcceptConnection(CancellationToken cancellationToken);
}