IConnectionListener Interface

Definition

Defines an interface that represents a listener bound to a specific EndPoint.

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

Properties

EndPoint

The endpoint that was bound. This may differ from the requested endpoint, such as when the caller requested that any free port be selected.

Methods

AcceptAsync(CancellationToken)

Begins an asynchronous operation to accept an incoming connection.

UnbindAsync(CancellationToken)

Stops listening for incoming connections.

Applies to