Class FluxzyDefaultHandler
- Namespace
- Fluxzy.Clients.DotNetBridge
- Assembly
- Fluxzy.Core.dll
An HttpMessageHandler that uses fluxzy internals to send requests. Unless you know what you are doing, you should not use this class directly instead of HttpClientHandler.
public class FluxzyDefaultHandler : HttpMessageHandler, IDisposable
- Inheritance
-
FluxzyDefaultHandler
- Implements
- Inherited Members
Constructors
FluxzyDefaultHandler(SslProvider, ITcpConnectionProvider?, RealtimeArchiveWriter?)
public FluxzyDefaultHandler(SslProvider sslProvider, ITcpConnectionProvider? connectionProvider = null, RealtimeArchiveWriter? writer = null)
Parameters
sslProviderSslProviderconnectionProviderITcpConnectionProviderwriterRealtimeArchiveWriter
Properties
Protocols
public List<SslApplicationProtocol>? Protocols { get; set; }
Property Value
Methods
Dispose(bool)
Releases the unmanaged resources used by the HttpMessageHandler and optionally disposes of the managed resources.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue to release both managed and unmanaged resources; false to releases only unmanaged resources.
SendAsync(HttpRequestMessage, CancellationToken)
Send an HTTP request as an asynchronous operation.
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
requestHttpRequestMessageThe HTTP request message to send.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<HttpResponseMessage>
The task object representing the asynchronous operation.
Exceptions
- ArgumentNullException
The
requestwas null.