// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Connections
{
///
/// 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 abstract class ConnectionHandler
{
///
/// 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 abstract Task OnConnectedAsync(ConnectionContext connection);
}
}