Merge pull request #2445 from aspnet/release/2.1

Add IConnection to Connections.Abstractions (#2444)
This commit is contained in:
Andrew Stanton-Nurse 2018-03-30 15:21:48 -07:00 committed by GitHub
commit 2c2a8dae01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}
}