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. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for