Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Connections.​IConnectionFactory

Assembly: Microsoft.AspNetCore.Connections.Abstractions

A factory abstraction for creating connections to an endpoint.

Methods

ConnectAsync​(System.​Net.​EndPoint endpoint, System.​Threading.​CancellationToken cancellationToken = null)
Creates a new connection to an endpoint.
Returns A <see cref="T:System.Threading.Tasks.ValueTask`1" /> that represents the asynchronous connect, yielding the <see cref="T:Microsoft.AspNetCore.Connections.ConnectionContext" /> for the new connection when completed.
endpoint The <see cref="T:System.Net.EndPoint" /> to connect to.
cancellationToken The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" /> .