Class RpcLoggingHandler
Attach an RpcLoggingHandler to an instance of the RpcClient class to log
request and response data to a writer stream.
Inheritance
System.Object
RpcLoggingHandler
Assembly: Casper.Network.SDK.dll
Syntax
public class RpcLoggingHandler : DelegatingHandler
Constructors
RpcLoggingHandler(HttpMessageHandler)
Declaration
public RpcLoggingHandler(HttpMessageHandler innerHandler)
Parameters
Type |
Name |
Description |
HttpMessageHandler |
innerHandler |
|
Properties
LoggerStream
Declaration
public StreamWriter LoggerStream { get; set; }
Property Value
Type |
Description |
StreamWriter |
|
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
SendAsync(HttpRequestMessage, CancellationToken)
Declaration
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
HttpRequestMessage |
request |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<HttpResponseMessage> |
|