This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
Rationalize IConnection and ConnectionContext #1892
Closed
Description
This is the last remaining piece of work to do from #1453.
The cheapest solution I see is to:
- Implement ConnectionContext on the HttpConnection
- Introduce IConnectionFactory to the HubConnection layer
public IConnectionFactory
{
Task<ConnectionContext> ConnectAsync(TransferFormat transferFormat);
}
The last thing to figure out after that would be how we do DisposeAsync (it could be Abort), see aspnet/KestrelHttpServer#2054