diff --git a/src/Connections.Abstractions/IConnection.cs b/src/Connections.Abstractions/IConnection.cs new file mode 100644 index 0000000000..4f116a8433 --- /dev/null +++ b/src/Connections.Abstractions/IConnection.cs @@ -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(); + } +}