Add IConnection to Connections.Abstractions (#2444)
This commit is contained in:
parent
7b3491e11e
commit
67cb8a0e11
|
|
@ -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