protected ConnectionListener() { }
public abstract System.Net.Connections.IConnectionProperties ListenerProperties { get; }
public abstract System.Net.EndPoint? LocalEndPoint { get; }
- public abstract System.Threading.Tasks.ValueTask<System.Net.Connections.Connection> AcceptAsync(System.Net.Connections.IConnectionProperties? options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ public abstract System.Threading.Tasks.ValueTask<System.Net.Connections.Connection?> AcceptAsync(System.Net.Connections.IConnectionProperties? options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
public void Dispose() { }
protected virtual void Dispose(bool disposing) { }
public System.Threading.Tasks.ValueTask DisposeAsync() { throw null; }
/// <param name="options">Options used to create the connection, if any.</param>
/// <param name="cancellationToken">A token used to cancel the asynchronous operation.</param>
/// <returns>A <see cref="ValueTask{TResult}"/> for the <see cref="Connection"/>.</returns>
- public abstract ValueTask<Connection> AcceptAsync(IConnectionProperties? options = null, CancellationToken cancellationToken = default);
+ public abstract ValueTask<Connection?> AcceptAsync(IConnectionProperties? options = null, CancellationToken cancellationToken = default);
public void Dispose()
{