IMultiplexedConnectionFactory.ConnectAsync Yöntem

Tanım

Uç noktaya yeni bir bağlantı oluşturur.

public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.MultiplexedConnectionContext> ConnectAsync (System.Net.EndPoint endpoint, Microsoft.AspNetCore.Http.Features.IFeatureCollection? features = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ConnectAsync : System.Net.EndPoint * Microsoft.AspNetCore.Http.Features.IFeatureCollection * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.MultiplexedConnectionContext>
Public Function ConnectAsync (endpoint As EndPoint, Optional features As IFeatureCollection = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of MultiplexedConnectionContext)

Parametreler

endpoint
EndPoint

EndPoint Bağlanacak.

features
IFeatureCollection

Bağlanırken seçenekleri geçirmek için bir özellik koleksiyonu.

cancellationToken
CancellationToken

İptal istekleri için izlenecek belirteç. None varsayılan değerdir.

Döndürülenler

ValueTask<TResult> Tamamlandığında yeni bağlantı için değerini veren zaman uyumsuz bağlantıyı temsil eden MultiplexedConnectionContext bir.

Şunlara uygulanır