Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DiagnosticsHandler()

System.Net.Http.DiagnosticsHandler.DiagnosticsHandler ( HttpMessageHandler innerHandler,
DistributedContextPropagator propagator,
bool autoRedirect = false )
inline

Definition at line 137 of file DiagnosticsHandler.cs.

138 {
141 if (!autoRedirect)
142 {
143 return;
144 }
146 if (fields == null || fields.Count <= 0)
147 {
148 return;
149 }
151 foreach (string item in fields)
152 {
153 if (item != null && HeaderDescriptor.TryGet(item, out var descriptor))
154 {
155 list.Add(descriptor);
156 }
157 }
158 _propagatorFields = list.ToArray();
159 }
readonly HeaderDescriptor[] _propagatorFields
readonly DistributedContextPropagator _propagator
readonly HttpMessageHandler _innerHandler
static bool TryGet(string headerName, out HeaderDescriptor descriptor)

References System.Net.Http.DiagnosticsHandler._innerHandler, System.Net.Http.DiagnosticsHandler._propagator, System.Net.Http.DiagnosticsHandler._propagatorFields, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Diagnostics.DistributedContextPropagator.Fields, System.item, System.list, and System.Net.Http.Headers.HeaderDescriptor.TryGet().