1 instantiation of NetEventSource
System.Net.Mail (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly NetEventSource Log = new
NetEventSource
();
68 references to NetEventSource
System.Net.Mail (68)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (16)
259
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this);
280
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "starting identity capture");
288
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "starting capture");
305
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"_context:{_context}");
310
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Skipping capture");
323
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Completing synchronously");
334
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"_context(set):{_context != null} userToken:{userToken}");
366
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Context set, calling callback.");
src\libraries\Common\src\System\Net\DebugSafeHandle.cs (2)
35
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, _trace);
src\libraries\Common\src\System\Net\DebugSafeHandleZeroOrMinusOneIsInvalid.cs (4)
20
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Creating SafeHandle");
25
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, _trace);
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\Mail\MailMessage.cs (4)
39
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Associate(this, _message);
48
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Associate(this, _message);
System\Net\Mail\MailPriority.cs (4)
192
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Associate(this, _headers);
218
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Associate(this, _envelopeHeaders);
System\Net\Mail\SmtpClient.cs (17)
101
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Associate(this, _transport);
370
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"{nameof(pickupDirectory)}={pickupDirectory}");
412
if (
NetEventSource
.Log.IsEnabled())
414
NetEventSource
.Info(this, $"DeliveryMethod={DeliveryMethod}");
415
NetEventSource
.Associate(this, message);
511
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, e);
650
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Calling BeginConnect. Transport: {_transport}");
663
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, e);
847
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, exception);
876
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Complete");
System\Net\Mail\SmtpConnection.cs (4)
439
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Connect returned");
458
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, $"Connect returned {thisPtr}");
System\Net\Mail\SmtpTransport.cs (6)
106
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Associate(this, _connection);
125
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Associate(this, _connection);
139
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Sync completion");