Share via


IConnectionListener 介面

定義

定義介面,表示系結至特定 EndPoint 的接聽程式。

public interface class IConnectionListener : IAsyncDisposable
public interface IConnectionListener : IAsyncDisposable
type IConnectionListener = interface
    interface IAsyncDisposable
Public Interface IConnectionListener
Implements IAsyncDisposable
實作

屬性

EndPoint

已系結的端點。 這可能與要求的端點不同,例如呼叫端要求選取任何可用埠時。

方法

AcceptAsync(CancellationToken)

開始非同步作業以接受連入連線。

UnbindAsync(CancellationToken)

停止接聽連入連線。

適用於