Add IConnection to Connections.Abstractions (#2444)

This commit is contained in:
David Fowler 2018-03-30 15:20:31 -07:00 committed by Andrew Stanton-Nurse
parent 7b3491e11e
commit 67cb8a0e11
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
using System.Collections.Generic;
using System.IO.Pipelines;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Features;
namespace Microsoft.AspNetCore.Connections
{
public interface IConnection
{
IDuplexPipe Transport { get; }
IFeatureCollection Features { get; }
Task StartAsync();
Task StartAsync(TransferFormat transferFormat);
Task DisposeAsync();
}
}