Merge pull request #2445 from aspnet/release/2.1
Add IConnection to Connections.Abstractions (#2444)
This commit is contained in:
commit
2c2a8dae01
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue