AppDynamics Xamarin SDK
2021.8.0
Real user monitoring for your Xamarin app.
|
Public Member Functions | |
HttpRequestTrackerHandler (HttpMessageHandler httpClientHandler=null) | |
Instantiates an HttpRequestTrackerHandler More... | |
Protected Member Functions | |
async override Task< HttpResponseMessage > | SendAsync (HttpRequestMessage request, CancellationToken cancellationToken) |
The HttpMessageHandler handles all the tracking and error handling. It can also include other inner handlers if you are already using a custom HttpMessageHandler for other purposes, such as for logging.
To add semi-automatic tracking, instantiate a HttpClient and pass the HttpRequestTrackerHandler:
Then, all the requests sent using the client will be already instrumented:
If you already have HttpMessageHandler passed to the HttpClient (for example, adding a logging handler), you must instantiate HttpRequestTrackerHandler and pass the existing handler to the constructor:
|
inline |
Instantiates an HttpRequestTrackerHandler
httpClientHandler | An existing httpClientHandler. Default is null. |