Class H2ConnectionPool
public class H2ConnectionPool : IHttpConnectionPool, IAsyncDisposable
- Inheritance
-
H2ConnectionPool
- Implements
- Inherited Members
Constructors
H2ConnectionPool(Stream, H2StreamSetting, Authority, Connection, Action<H2ConnectionPool>)
public H2ConnectionPool(Stream baseStream, H2StreamSetting setting, Authority authority, Connection connection, Action<H2ConnectionPool> onConnectionFaulted)
Parameters
baseStream
Streamsetting
H2StreamSettingauthority
Authorityconnection
ConnectiononConnectionFaulted
Action<H2ConnectionPool>
Fields
IsDisposed
public volatile bool IsDisposed
Field Value
TotalRequest
public volatile int TotalRequest
Field Value
Properties
Authority
public Authority Authority { get; }
Property Value
Complete
public bool Complete { get; }
Property Value
Id
public int Id { get; }
Property Value
Setting
public H2StreamSetting Setting { get; }
Property Value
Methods
CheckAlive()
public ValueTask<bool> CheckAlive()
Returns
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
Init()
public void Init()
Send(Exchange, ILocalLink, RsBuffer, CancellationToken)
public ValueTask Send(Exchange exchange, ILocalLink _, RsBuffer buffer, CancellationToken cancellationToken = default)
Parameters
exchange
Exchange_
ILocalLinkbuffer
RsBuffercancellationToken
CancellationToken