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

◆ BeforeResolution()

ValueStopwatch System.Net.NameResolutionTelemetry.BeforeResolution ( object hostNameOrAddress)
inline

Definition at line 73 of file NameResolutionTelemetry.cs.

74 {
75 if (IsEnabled())
76 {
79 if (IsEnabled(EventLevel.Informational, EventKeywords.None))
80 {
84 }
85 return ValueStopwatch.StartNew();
86 }
87 return default(ValueStopwatch);
88 }
void ResolutionStart(string hostNameOrAddress)
static int Increment(ref int location)
static Microsoft.Extensions.Internal.ValueStopwatch StartNew()

References System.Net.NameResolutionTelemetry._currentLookups, System.Net.NameResolutionTelemetry._lookupsRequested, System.Threading.Interlocked.Increment(), System.Diagnostics.Tracing.EventSource.IsEnabled(), System.Net.NameResolutionTelemetry.ResolutionStart(), Microsoft.Extensions.Internal.ValueStopwatch.StartNew(), and System.text.