1 instantiation of NetEventSource
System.Net.HttpListener (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly NetEventSource Log = new
NetEventSource
();
104 references to NetEventSource
System.Net.HttpListener (104)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (10)
64
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this);
362
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Invoking callback");
366
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "*** OFFLOADED the user callback ****");
384
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "No callback to invoke");
447
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Waiting for completion event {waitHandle}");
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly
NetEventSource
Log = new NetEventSource();
System\Net\HttpListener.cs (12)
156
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"mapped uriPrefix: {uriPrefix} to registeredPrefix: {registeredPrefix}");
166
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, exception);
222
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"uriPrefix: {uriPrefix}");
240
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, exception);
302
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info("HttpListenerRequest::Close()");
307
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"Close {exception}");
System\Net\HttpListenerException.cs (8)
16
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"{NativeErrorCode}:{Message}");
21
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"{NativeErrorCode}:{Message}");
26
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"{NativeErrorCode}:{Message}");
34
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"{NativeErrorCode}:{Message}");
System\Net\HttpListenerRequest.cs (10)
30
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "uri:" + uri + " setCookieHeader:" + setCookieHeader);
41
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "CookieParser returned cookie: " + cookie.ToString());
186
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "_keepAlive=" + _keepAlive);
239
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"_clientCertificate:{ClientCertificate}");
246
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this);
System\Net\HttpListenerRequestUriBuilder.cs (18)
90
if (
NetEventSource
.Log.IsEnabled())
91
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_create_uri, _cookedUriScheme, _cookedUriHost, _cookedUriPath, _cookedUriQuery));
115
if (
NetEventSource
.Log.IsEnabled())
116
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_create_uri, _cookedUriScheme, _cookedUriHost, _rawPath, _cookedUriQuery));
163
if (
NetEventSource
.Log.IsEnabled())
164
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_convert_raw_path, _rawPath, encoding.EncodingName));
252
if (
NetEventSource
.Log.IsEnabled())
253
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, codePoint));
267
if (
NetEventSource
.Log.IsEnabled())
268
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, codePoint));
273
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, unicodeString, e.Message));
284
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, escapedCharacter));
323
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_convert_bytes, GetOctetsAsString(_rawOctets), e.Message));
328
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, decodedString, e.Message));
System\Net\HttpListenerResponse.cs (16)
175
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"name={name}, value={value}");
181
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"name={name}, value={value}");
189
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"cookie: {cookie}");
195
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Entering Set-Cookie: {Headers[HttpResponseHeader.SetCookie]}, Set-Cookie2: {Headers[HttpKnownHeaderNames.SetCookie2]}");
209
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Now looking at index:{index} cookie: {cookie}");
239
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Exiting Set-Cookie: {Headers[HttpResponseHeader.SetCookie]} Set-Cookie2: {Headers[HttpKnownHeaderNames.SetCookie2]}");
244
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"url={url}");
257
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"cookie: {cookie}");
System\Net\HttpRequestStream.cs (6)
20
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset);
34
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset);
67
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "_closed:" + _closed);
System\Net\HttpResponseStream.cs (8)
47
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset);
61
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "buffer.Length:" + buffer.Length + " count:" + count + " offset:" + offset);
68
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"asyncResult:{asyncResult}");
81
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "_closed:" + _closed);
System\Net\Managed\HttpListener.Managed.cs (8)
51
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"Start {exception}");
85
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"Stop {exception}");
115
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"Abort {exception}");
141
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"Dispose {exception}");
System\Net\ServiceNameStore.cs (7)
148
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, SR.Format(SR.net_log_listener_spn_add, spn, uriPrefix));
156
else if (
NetEventSource
.Log.IsEnabled())
158
NetEventSource
.Info(this, SR.Format(SR.net_log_listener_spn_not_add, uriPrefix));
178
if (
NetEventSource
.Log.IsEnabled())
182
NetEventSource
.Info(this, SR.Format(SR.net_log_listener_spn_remove, newServiceName, uriPrefix));
186
NetEventSource
.Info(this, SR.Format(SR.net_log_listener_spn_not_remove, uriPrefix));