Class MockedConnectionPool
public class MockedConnectionPool : IHttpConnectionPool, IAsyncDisposable
- Inheritance
-
MockedConnectionPool
- Implements
- Inherited Members
Constructors
MockedConnectionPool(Authority, PreMadeResponse)
public MockedConnectionPool(Authority authority, PreMadeResponse preMadeResponse)
Parameters
authority
AuthoritypreMadeResponse
PreMadeResponse
Properties
Authority
public Authority Authority { get; }
Property Value
Complete
public bool Complete { get; }
Property Value
Methods
CheckAlive()
public ValueTask<bool> CheckAlive()
Returns
Dispose()
public void Dispose()
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 localLink, RsBuffer buffer, CancellationToken cancellationToken = default)
Parameters
exchange
ExchangelocalLink
ILocalLinkbuffer
RsBuffercancellationToken
CancellationToken