IMultiplexedConnectionListenerFactory.BindAsync Yöntem

Tanım

Belirtilen EndPointöğesine bağlı oluştururIMultiplexedConnectionListener.

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

Parametreler

endpoint
EndPoint

Bağlanacak EndPoint .

features
IFeatureCollection

Bağlama sırasında seçenekleri geçirmek için bir özellik koleksiyonu.

cancellationToken
CancellationToken

İptal istekleri için izlenecek belirteç.

Döndürülenler

ValueTask<TResult> Dinleyici bağlandığında tamamlanan ve yeni dinleyiciyi temsil eden bir sonuç veren birIMultiplexedConnectionListener.

Şunlara uygulanır