10[
EventSource(
Name =
"Private.InternalDiagnostics.System.Net.Mail", LocalizationResources =
"FxResources.System.Net.Mail.SR")]
23 public static void Info(
object thisOrContextObject,
FormattableString formattableString =
null, [CallerMemberName]
string memberName =
null)
27 Log.Info(
IdOf(thisOrContextObject), memberName, (formattableString !=
null) ?
Format(formattableString) :
"");
23 public static void Info(
object thisOrContextObject,
FormattableString formattableString =
null, [CallerMemberName]
string memberName =
null) {
…}
32 public static void Info(
object thisOrContextObject,
object message, [CallerMemberName]
string memberName =
null)
32 public static void Info(
object thisOrContextObject,
object message, [CallerMemberName]
string memberName =
null) {
…}
41 private void Info(
string thisOrContextObject,
string memberName,
string message)
43 WriteEvent(4, thisOrContextObject, memberName ??
"(?)", message);
41 private void Info(
string thisOrContextObject,
string memberName,
string message) {
…}
47 public static void Error(
object thisOrContextObject,
FormattableString formattableString, [CallerMemberName]
string memberName =
null)
51 Log.ErrorMessage(
IdOf(thisOrContextObject), memberName,
Format(formattableString));
47 public static void Error(
object thisOrContextObject,
FormattableString formattableString, [CallerMemberName]
string memberName =
null) {
…}
56 public static void Error(
object thisOrContextObject,
object message, [CallerMemberName]
string memberName =
null)
56 public static void Error(
object thisOrContextObject,
object message, [CallerMemberName]
string memberName =
null) {
…}
65 private void ErrorMessage(
string thisOrContextObject,
string memberName,
string message)
67 WriteEvent(5, thisOrContextObject, memberName ??
"(?)", message);
65 private void ErrorMessage(
string thisOrContextObject,
string memberName,
string message) {
…}
71 public static void Verbose(
object thisOrContextObject,
FormattableString formattableString, [CallerMemberName]
string memberName =
null)
75 Log.ErrorMessage(
IdOf(thisOrContextObject), memberName,
Format(formattableString));
71 public static void Verbose(
object thisOrContextObject,
FormattableString formattableString, [CallerMemberName]
string memberName =
null) {
…}
80 public static void Associate(
object first,
object second, [CallerMemberName]
string memberName =
null)
80 public static void Associate(
object first,
object second, [CallerMemberName]
string memberName =
null) {
…}
89 private void Associate(
string thisOrContextObject,
string memberName,
string first,
string second)
91 WriteEvent(3, thisOrContextObject, memberName ??
"(?)", first, second);
89 private void Associate(
string thisOrContextObject,
string memberName,
string first,
string second) {
…}
107 return value?.GetHashCode() ?? 0;
124 return $
"{array.GetType().GetElementType()}[{((Array)value).Length}]";
128 return $
"{collection.GetType().Name}({collection.Count})";
132 return $
"{safeHandle.GetType().Name}:{safeHandle.GetHashCode()}(0x{safeHandle.DangerousGetHandle():X})";
136 return $
"0x{value:X}";
138 string text2 =
value.ToString();
139 if (text2 ==
null || text2 ==
value.GetType().FullName)
149 switch (
s.ArgumentCount)
154 return string.Format(
s.Format,
Format(
s.GetArgument(0)));
156 return string.Format(
s.Format,
Format(
s.GetArgument(0)),
Format(
s.GetArgument(1)));
158 return string.Format(
s.Format,
Format(
s.GetArgument(0)),
Format(
s.GetArgument(1)),
Format(
s.GetArgument(2)));
161 object[] arguments =
s.GetArguments();
162 object[]
array =
new object[arguments.Length];
163 for (
int i = 0; i < arguments.Length; i++)
167 return string.Format(
s.Format,
array);
172 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:UnrecognizedReflectionPattern", Justification =
"Parameters to this method are primitive and are trimmer safe")]
174 private unsafe
void WriteEvent(
int eventId,
string arg1,
string arg2,
string arg3,
string arg4)
179 if (!
Log.IsEnabled())
199 fixed (
char* ptr6 = arg1)
210 intPtr = (ptr =
null);
211 fixed (
char* ptr2 = arg3)
217 intPtr2 = (ptr4 =
null);
222 DataPointer = (
IntPtr)ptr6,
223 Size = (arg1.Length + 1) * 2
225 num = (nint)(ptr5 + 1);
228 DataPointer = (
IntPtr)ptr,
229 Size = (arg2.Length + 1) * 2
231 num2 = (nint)(ptr5 + 2);
234 DataPointer = (
IntPtr)ptr3,
235 Size = (arg3.Length + 1) * 2
237 num3 = (nint)(ptr5 + 3);
240 DataPointer = (
IntPtr)ptr4,
241 Size = (arg4.Length + 1) * 2
246 fixed (
char* ptr7 = &arg4.GetPinnableReference())
249 intPtr2 = (ptr4 = ptr7);
254 DataPointer = (
IntPtr)ptr6,
255 Size = (arg1.Length + 1) * 2
257 num = (nint)(ptr5 + 1);
260 DataPointer = (
IntPtr)ptr,
261 Size = (arg2.Length + 1) * 2
263 num2 = (nint)(ptr5 + 2);
266 DataPointer = (
IntPtr)ptr3,
267 Size = (arg3.Length + 1) * 2
269 num3 = (nint)(ptr5 + 3);
272 DataPointer = (
IntPtr)ptr4,
273 Size = (arg4.Length + 1) * 2
280 fixed (
char* ptr8 = &arg2.GetPinnableReference())
283 intPtr = (ptr = ptr8);
284 fixed (
char* ptr2 = arg3)
290 intPtr2 = (ptr4 =
null);
295 DataPointer = (
IntPtr)ptr6,
296 Size = (arg1.Length + 1) * 2
298 num = (nint)(ptr5 + 1);
301 DataPointer = (
IntPtr)ptr,
302 Size = (arg2.Length + 1) * 2
304 num2 = (nint)(ptr5 + 2);
307 DataPointer = (
IntPtr)ptr3,
308 Size = (arg3.Length + 1) * 2
310 num3 = (nint)(ptr5 + 3);
313 DataPointer = (
IntPtr)ptr4,
314 Size = (arg4.Length + 1) * 2
319 fixed (
char* ptr7 = &arg4.GetPinnableReference())
322 intPtr2 = (ptr4 = ptr7);
327 DataPointer = (
IntPtr)ptr6,
328 Size = (arg1.Length + 1) * 2
330 num = (nint)(ptr5 + 1);
333 DataPointer = (
IntPtr)ptr,
334 Size = (arg2.Length + 1) * 2
336 num2 = (nint)(ptr5 + 2);
339 DataPointer = (
IntPtr)ptr3,
340 Size = (arg3.Length + 1) * 2
342 num3 = (nint)(ptr5 + 3);
345 DataPointer = (
IntPtr)ptr4,
346 Size = (arg4.Length + 1) * 2
174 private unsafe
void WriteEvent(
int eventId,
string arg1,
string arg2,
string arg3,
string arg4) {
…}
355 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:UnrecognizedReflectionPattern", Justification =
"Parameters to this method are primitive and are trimmer safe")]
357 private unsafe
void WriteEvent(
int eventId,
string arg1,
int arg2,
int arg3,
int arg4)
365 fixed (
char* ptr2 = arg1)
370 DataPointer = (
IntPtr)ptr2,
371 Size = (arg1.Length + 1) * 2
375 DataPointer = (
IntPtr)(&arg2),
380 DataPointer = (
IntPtr)(&arg3),
385 DataPointer = (
IntPtr)(&arg4),
357 private unsafe
void WriteEvent(
int eventId,
string arg1,
int arg2,
int arg3,
int arg4) {
…}
393 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:UnrecognizedReflectionPattern", Justification =
"Parameters to this method are primitive and are trimmer safe")]
395 private unsafe
void WriteEvent(
int eventId,
string arg1,
int arg2,
string arg3)
398 if (!
Log.IsEnabled())
410 fixed (
char* ptr3 = arg1)
419 intPtr = (ptr =
null);
424 DataPointer = (
IntPtr)ptr3,
425 Size = (arg1.Length + 1) * 2
427 num = (nint)(ptr2 + 1);
430 DataPointer = (
IntPtr)(&arg2),
433 num2 = (nint)(ptr2 + 2);
436 DataPointer = (
IntPtr)ptr,
437 Size = (arg3.Length + 1) * 2
442 fixed (
char* ptr4 = &arg3.GetPinnableReference())
445 intPtr = (ptr = ptr4);
450 DataPointer = (
IntPtr)ptr3,
451 Size = (arg1.Length + 1) * 2
453 num = (nint)(ptr2 + 1);
456 DataPointer = (
IntPtr)(&arg2),
459 num2 = (nint)(ptr2 + 2);
462 DataPointer = (
IntPtr)ptr,
463 Size = (arg3.Length + 1) * 2
395 private unsafe
void WriteEvent(
int eventId,
string arg1,
int arg2,
string arg3) {
…}
470 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:UnrecognizedReflectionPattern", Justification =
"Parameters to this method are primitive and are trimmer safe")]
472 private unsafe
void WriteEvent(
int eventId,
string arg1,
string arg2,
int arg3)
475 if (!
Log.IsEnabled())
487 fixed (
char* ptr3 = arg1)
496 intPtr = (ptr =
null);
501 DataPointer = (
IntPtr)ptr3,
502 Size = (arg1.Length + 1) * 2
504 num = (nint)(ptr2 + 1);
507 DataPointer = (
IntPtr)ptr,
508 Size = (arg2.Length + 1) * 2
510 num2 = (nint)(ptr2 + 2);
513 DataPointer = (
IntPtr)(&arg3),
519 fixed (
char* ptr4 = &arg2.GetPinnableReference())
522 intPtr = (ptr = ptr4);
527 DataPointer = (
IntPtr)ptr3,
528 Size = (arg1.Length + 1) * 2
530 num = (nint)(ptr2 + 1);
533 DataPointer = (
IntPtr)ptr,
534 Size = (arg2.Length + 1) * 2
536 num2 = (nint)(ptr2 + 2);
539 DataPointer = (
IntPtr)(&arg3),
472 private unsafe
void WriteEvent(
int eventId,
string arg1,
string arg2,
int arg3) {
…}
547 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:UnrecognizedReflectionPattern", Justification =
"Parameters to this method are primitive and are trimmer safe")]
549 private unsafe
void WriteEvent(
int eventId,
string arg1,
string arg2,
string arg3,
int arg4)
552 if (!
Log.IsEnabled())
568 fixed (
char* ptr5 = arg1)
578 intPtr = (ptr =
null);
579 fixed (
char* ptr2 = arg3)
586 DataPointer = (
IntPtr)ptr5,
587 Size = (arg1.Length + 1) * 2
589 num = (nint)(ptr4 + 1);
592 DataPointer = (
IntPtr)ptr,
593 Size = (arg2.Length + 1) * 2
595 num2 = (nint)(ptr4 + 2);
598 DataPointer = (
IntPtr)ptr3,
599 Size = (arg3.Length + 1) * 2
601 num3 = (nint)(ptr4 + 3);
604 DataPointer = (
IntPtr)(&arg4),
611 fixed (
char* ptr6 = &arg2.GetPinnableReference())
614 intPtr = (ptr = ptr6);
615 fixed (
char* ptr2 = arg3)
622 DataPointer = (
IntPtr)ptr5,
623 Size = (arg1.Length + 1) * 2
625 num = (nint)(ptr4 + 1);
628 DataPointer = (
IntPtr)ptr,
629 Size = (arg2.Length + 1) * 2
631 num2 = (nint)(ptr4 + 2);
634 DataPointer = (
IntPtr)ptr3,
635 Size = (arg3.Length + 1) * 2
637 num3 = (nint)(ptr4 + 3);
640 DataPointer = (
IntPtr)(&arg4),
549 private unsafe
void WriteEvent(
int eventId,
string arg1,
string arg2,
string arg3,
int arg4) {
…}
667 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"parameter intent is an enum and is trimmer safe")]
691 WriteEvent(11, packageName, (
int)intent, authdata);
705 private void InitializeSecurityContext(
string credential,
string context,
string targetName, global::Interop.SspiCli.ContextFlags inFlags)
707 WriteEvent(12, credential, context, targetName, (
int)inFlags);
705 private void InitializeSecurityContext(
string credential,
string context,
string targetName, global::Interop.SspiCli.ContextFlags inFlags) {
…}
722 WriteEvent(15, credential, context, (
int)inFlags);
725 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"parameter errorCode is an enum and is trimmer safe")]
740 WriteEvent(14, context, inputBuffersSize, outputBufferSize, (
int)errorCode);
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)
override string ToString()
const EventKeywords Default
void EnumerateSecurityPackages(string securityPackage)
unsafe void WriteEvent(int eventId, string arg1, string arg2, string arg3, int arg4)
void AcceptSecurityContext(string credential, string context, global::Interop.SspiCli.ContextFlags inFlags)
void AcquireCredentialsHandle(string packageName, global::Interop.SspiCli.CredentialUse intent, string authdata)
void SecurityContextInputBuffers(string context, int inputBuffersSize, int outputBufferSize, global::Interop.SECURITY_STATUS errorCode)
static readonly System.Net.NetEventSource Log
void Associate(string thisOrContextObject, string memberName, string first, string second)
void AcquireDefaultCredential(string packageName, global::Interop.SspiCli.CredentialUse intent)
void ErrorMessage(string thisOrContextObject, string memberName, string message)
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static void Error(object thisOrContextObject, object message, [CallerMemberName] string memberName=null)
void Info(string thisOrContextObject, string memberName, string message)
void AcquireCredentialsHandle(string packageName, global::Interop.SspiCli.CredentialUse intent, object authdata)
unsafe void WriteEvent(int eventId, string arg1, string arg2, int arg3)
static string IdOf(object value)
static string Format(FormattableString s)
void OperationReturnedSomething(string operation, global::Interop.SECURITY_STATUS errorCode)
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
static void Associate(object first, object second, [CallerMemberName] string memberName=null)
static int GetHashCode(object value)
unsafe void WriteEvent(int eventId, string arg1, int arg2, string arg3)
void AcceptSecurityContext(System.Net.Security.SafeFreeCredentials credential, System.Net.Security.SafeDeleteContext context, global::Interop.SspiCli.ContextFlags inFlags)
unsafe void WriteEvent(int eventId, int arg1, int arg2, int arg3, string arg4, string arg5)
unsafe void WriteEvent(int eventId, string arg1, string arg2, string arg3, string arg4)
unsafe void WriteEvent(int eventId, string arg1, int arg2, int arg3, int arg4)
void InitializeSecurityContext(string credential, string context, string targetName, global::Interop.SspiCli.ContextFlags inFlags)
void SspiPackageNotFound(string packageName)
static void Info(object thisOrContextObject, object message, [CallerMemberName] string memberName=null)
static object Format(object value)
void InitializeSecurityContext(System.Net.Security.SafeFreeCredentials credential, System.Net.Security.SafeDeleteContext context, string targetName, global::Interop.SspiCli.ContextFlags inFlags)
static void Verbose(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)