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