Skip to content

Commit b6167a9

Browse files
author
LoneWandererProductions
committed
make use of Tracer.
1 parent 3c655c9 commit b6167a9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Communication/HttpClientManager.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ namespace Communication
2222
/// </summary>
2323
public static class HttpClientManager
2424
{
25+
/// <summary>
26+
/// The tracing handler
27+
/// </summary>
28+
private static readonly HttpWireTracingHandler TracingHandler = new()
29+
{
30+
InnerHandler = new HttpClientHandler()
31+
};
32+
2533
/// <summary>
2634
/// Singleton pattern is correct here
2735
/// </summary>
28-
private static readonly HttpClient HttpClient = new();
36+
private static readonly HttpClient HttpClient = new(TracingHandler);
2937

3038
/// <summary>
3139
/// Calls a SOAP service asynchronously.

0 commit comments

Comments
 (0)