IConnectionListener Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |