From 67cb8a0e1178e00197725cb7d7a2214841358cfb Mon Sep 17 00:00:00 2001 From: David Fowler Date: Fri, 30 Mar 2018 15:20:31 -0700 Subject: [PATCH] Add IConnection to Connections.Abstractions (#2444) --- src/Connections.Abstractions/IConnection.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Connections.Abstractions/IConnection.cs 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(); + } +}