using System.Threading.Tasks; namespace Microsoft.AspNetCore.Sockets { /// /// Represents an end point that multiple connections connect to. For HTTP, endpoints are URLs, for non HTTP it can be a TCP listener (or similar) /// public class EndPoint { /// /// Live list of connections for this /// public ConnectionList Connections { get; } = new ConnectionList(); /// /// Called when a new connection is accepted to the endpoint /// /// The new /// A that represents the connection lifetime. When the task completes, the connection is complete. public virtual Task OnConnected(Connection connection) { return Task.CompletedTask; } } }