1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 //     This code was generated by a tool.
4 //
5 //     Changes to this file may cause incorrect behavior and will be lost if
6 //     the code is regenerated.
7 // </auto-generated>
8 //------------------------------------------------------------------------------
9 
10 namespace System.ServiceModel.Diagnostics.Application
11 {
12     using System.Runtime;
13     using System.Runtime.Diagnostics;
14     using System.Security;
15 
16 
17     internal partial class TD
18     {
19 
20         static System.Resources.ResourceManager resourceManager;
21 
22         static System.Globalization.CultureInfo resourceCulture;
23 
24         [System.Security.SecurityCriticalAttribute()]
25         static System.Runtime.Diagnostics.EventDescriptor[] eventDescriptors;
26 
27         static object syncLock = new object();
28 
29         // Double-checked locking pattern requires volatile for read/write synchronization
30         static volatile bool eventDescriptorsCreated;
31 
TD()32         private TD()
33         {
34         }
35 
36         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification="This is an auto-generated code, some ETW/TraceSource mixed code would use it.")]
37         static System.Resources.ResourceManager ResourceManager
38         {
39             get
40             {
41                 if (object.ReferenceEquals(resourceManager, null))
42                 {
43                     resourceManager = new System.Resources.ResourceManager("System.ServiceModel.Diagnostics.Application.TD", typeof(TD).Assembly);
44                 }
45                 return resourceManager;
46             }
47         }
48 
49         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification="This template is shared across all assemblies, some of which use this accessor.")]
50         internal static System.Globalization.CultureInfo Culture
51         {
52             get
53             {
54                 return resourceCulture;
55             }
56             set
57             {
58                 resourceCulture = value;
59             }
60         }
61 
62         /// <summary>
63         /// Check if trace definition is enabled
64         /// Event description ID=217, Level=informational, Channel=Debug
65         /// </summary>
ClientOperationPreparedIsEnabled()66         internal static bool ClientOperationPreparedIsEnabled()
67         {
68             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(0));
69         }
70 
71         /// <summary>
72         /// Gets trace definition like: The Client is executing Action '{0}' associated with the '{1}' contract. The message will be sent to '{2}'.
73         /// Event description ID=217, Level=informational, Channel=Debug
74         /// </summary>
75         /// <param name="eventTraceActivity">The event trace activity</param>
76         /// <param name="Action">Parameter 0 for event: The Client is executing Action '{0}' associated with the '{1}' contract. The message will be sent to '{2}'.</param>
77         /// <param name="ContractName">Parameter 1 for event: The Client is executing Action '{0}' associated with the '{1}' contract. The message will be sent to '{2}'.</param>
78         /// <param name="Destination">Parameter 2 for event: The Client is executing Action '{0}' associated with the '{1}' contract. The message will be sent to '{2}'.</param>
79         /// <param name="relatedActivityId">The related event activity Id</param>
ClientOperationPrepared(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Action, string ContractName, string Destination, System.Guid relatedActivityId)80         internal static void ClientOperationPrepared(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Action, string ContractName, string Destination, System.Guid relatedActivityId)
81         {
82             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
83             if (TD.IsEtwEventEnabled(0))
84             {
85                 TD.WriteEtwTransferEvent(0, eventTraceActivity, relatedActivityId, Action, ContractName, Destination, payload.HostReference, payload.AppDomainFriendlyName);
86             }
87         }
88 
89         /// <summary>
90         /// Check if trace definition is enabled
91         /// Event description ID=201, Level=informational, Channel=Debug
92         /// </summary>
ClientMessageInspectorAfterReceiveInvokedIsEnabled()93         internal static bool ClientMessageInspectorAfterReceiveInvokedIsEnabled()
94         {
95             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(1));
96         }
97 
98         /// <summary>
99         /// Gets trace definition like: The Dispatcher invoked 'AfterReceiveReply' on a ClientMessageInspector of type '{0}'.
100         /// Event description ID=201, Level=informational, Channel=Debug
101         /// </summary>
102         /// <param name="eventTraceActivity">The event trace activity</param>
103         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'AfterReceiveReply' on a ClientMessageInspector of type '{0}'.</param>
ClientMessageInspectorAfterReceiveInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)104         internal static void ClientMessageInspectorAfterReceiveInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
105         {
106             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
107             if (TD.IsEtwEventEnabled(1))
108             {
109                 TD.WriteEtwEvent(1, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
110             }
111         }
112 
113         /// <summary>
114         /// Check if trace definition is enabled
115         /// Event description ID=202, Level=informational, Channel=Analytic
116         /// </summary>
ClientMessageInspectorBeforeSendInvokedIsEnabled()117         internal static bool ClientMessageInspectorBeforeSendInvokedIsEnabled()
118         {
119             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(2));
120         }
121 
122         /// <summary>
123         /// Gets trace definition like: The Dispatcher invoked 'BeforeSendRequest' on a ClientMessageInspector of type  '{0}'.
124         /// Event description ID=202, Level=informational, Channel=Analytic
125         /// </summary>
126         /// <param name="eventTraceActivity">The event trace activity</param>
127         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'BeforeSendRequest' on a ClientMessageInspector of type  '{0}'.</param>
ClientMessageInspectorBeforeSendInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)128         internal static void ClientMessageInspectorBeforeSendInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
129         {
130             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
131             if (TD.IsEtwEventEnabled(2))
132             {
133                 TD.WriteEtwEvent(2, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
134             }
135         }
136 
137         /// <summary>
138         /// Check if trace definition is enabled
139         /// Event description ID=203, Level=informational, Channel=Analytic
140         /// </summary>
ClientParameterInspectorAfterCallInvokedIsEnabled()141         internal static bool ClientParameterInspectorAfterCallInvokedIsEnabled()
142         {
143             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(3));
144         }
145 
146         /// <summary>
147         /// Gets trace definition like: The Dispatcher invoked 'AfterCall' on a ClientParameterInspector of type '{0}'.
148         /// Event description ID=203, Level=informational, Channel=Analytic
149         /// </summary>
150         /// <param name="eventTraceActivity">The event trace activity</param>
151         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'AfterCall' on a ClientParameterInspector of type '{0}'.</param>
ClientParameterInspectorAfterCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)152         internal static void ClientParameterInspectorAfterCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
153         {
154             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
155             if (TD.IsEtwEventEnabled(3))
156             {
157                 TD.WriteEtwEvent(3, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
158             }
159         }
160 
161         /// <summary>
162         /// Check if trace definition is enabled
163         /// Event description ID=204, Level=informational, Channel=Analytic
164         /// </summary>
ClientParameterInspectorBeforeCallInvokedIsEnabled()165         internal static bool ClientParameterInspectorBeforeCallInvokedIsEnabled()
166         {
167             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(4));
168         }
169 
170         /// <summary>
171         /// Gets trace definition like: The Dispatcher invoked 'BeforeCall' on a ClientParameterInspector of type '{0}'.
172         /// Event description ID=204, Level=informational, Channel=Analytic
173         /// </summary>
174         /// <param name="eventTraceActivity">The event trace activity</param>
175         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'BeforeCall' on a ClientParameterInspector of type '{0}'.</param>
ClientParameterInspectorBeforeCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)176         internal static void ClientParameterInspectorBeforeCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
177         {
178             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
179             if (TD.IsEtwEventEnabled(4))
180             {
181                 TD.WriteEtwEvent(4, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
182             }
183         }
184 
185         /// <summary>
186         /// Check if trace definition is enabled
187         /// Event description ID=205, Level=informational, Channel=Analytic
188         /// </summary>
OperationInvokedIsEnabled()189         internal static bool OperationInvokedIsEnabled()
190         {
191             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(5));
192         }
193 
194         /// <summary>
195         /// Gets trace definition like: An OperationInvoker invoked the '{0}' method. Caller information: '{1}'.
196         /// Event description ID=205, Level=informational, Channel=Analytic
197         /// </summary>
198         /// <param name="eventTraceActivity">The event trace activity</param>
199         /// <param name="MethodName">Parameter 0 for event: An OperationInvoker invoked the '{0}' method. Caller information: '{1}'.</param>
200         /// <param name="CallerInfo">Parameter 1 for event: An OperationInvoker invoked the '{0}' method. Caller information: '{1}'.</param>
OperationInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, string CallerInfo)201         internal static void OperationInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, string CallerInfo)
202         {
203             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
204             if (TD.IsEtwEventEnabled(5))
205             {
206                 TD.WriteEtwEvent(5, eventTraceActivity, MethodName, CallerInfo, payload.HostReference, payload.AppDomainFriendlyName);
207             }
208         }
209 
210         /// <summary>
211         /// Check if trace definition is enabled
212         /// Event description ID=206, Level=informational, Channel=Analytic
213         /// </summary>
ErrorHandlerInvokedIsEnabled()214         internal static bool ErrorHandlerInvokedIsEnabled()
215         {
216             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(6));
217         }
218 
219         /// <summary>
220         /// Gets trace definition like: The Dispatcher invoked an ErrorHandler of type  '{0}' with an exception of type '{2}'.  ErrorHandled == '{1}'.
221         /// Event description ID=206, Level=informational, Channel=Analytic
222         /// </summary>
223         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked an ErrorHandler of type  '{0}' with an exception of type '{2}'.  ErrorHandled == '{1}'.</param>
224         /// <param name="Handled">Parameter 1 for event: The Dispatcher invoked an ErrorHandler of type  '{0}' with an exception of type '{2}'.  ErrorHandled == '{1}'.</param>
225         /// <param name="ExceptionTypeName">Parameter 2 for event: The Dispatcher invoked an ErrorHandler of type  '{0}' with an exception of type '{2}'.  ErrorHandled == '{1}'.</param>
ErrorHandlerInvoked(string TypeName, bool Handled, string ExceptionTypeName)226         internal static void ErrorHandlerInvoked(string TypeName, bool Handled, string ExceptionTypeName)
227         {
228             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
229             if (TD.IsEtwEventEnabled(6))
230             {
231                 TD.WriteEtwEvent(6, null, TypeName, Handled, ExceptionTypeName, payload.HostReference, payload.AppDomainFriendlyName);
232             }
233         }
234 
235         /// <summary>
236         /// Check if trace definition is enabled
237         /// Event description ID=207, Level=informational, Channel=Analytic
238         /// </summary>
FaultProviderInvokedIsEnabled()239         internal static bool FaultProviderInvokedIsEnabled()
240         {
241             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(7));
242         }
243 
244         /// <summary>
245         /// Gets trace definition like: The Dispatcher invoked a FaultProvider of type '{0}' with an exception of type '{1}'.
246         /// Event description ID=207, Level=informational, Channel=Analytic
247         /// </summary>
248         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked a FaultProvider of type '{0}' with an exception of type '{1}'.</param>
249         /// <param name="ExceptionTypeName">Parameter 1 for event: The Dispatcher invoked a FaultProvider of type '{0}' with an exception of type '{1}'.</param>
FaultProviderInvoked(string TypeName, string ExceptionTypeName)250         internal static void FaultProviderInvoked(string TypeName, string ExceptionTypeName)
251         {
252             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
253             if (TD.IsEtwEventEnabled(7))
254             {
255                 TD.WriteEtwEvent(7, null, TypeName, ExceptionTypeName, payload.HostReference, payload.AppDomainFriendlyName);
256             }
257         }
258 
259         /// <summary>
260         /// Check if trace definition is enabled
261         /// Event description ID=208, Level=informational, Channel=Analytic
262         /// </summary>
MessageInspectorAfterReceiveInvokedIsEnabled()263         internal static bool MessageInspectorAfterReceiveInvokedIsEnabled()
264         {
265             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(8));
266         }
267 
268         /// <summary>
269         /// Gets trace definition like: The Dispatcher invoked 'AfterReceiveReply' on a MessageInspector of type '{0}'.
270         /// Event description ID=208, Level=informational, Channel=Analytic
271         /// </summary>
272         /// <param name="eventTraceActivity">The event trace activity</param>
273         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'AfterReceiveReply' on a MessageInspector of type '{0}'.</param>
MessageInspectorAfterReceiveInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)274         internal static void MessageInspectorAfterReceiveInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
275         {
276             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
277             if (TD.IsEtwEventEnabled(8))
278             {
279                 TD.WriteEtwEvent(8, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
280             }
281         }
282 
283         /// <summary>
284         /// Check if trace definition is enabled
285         /// Event description ID=209, Level=informational, Channel=Analytic
286         /// </summary>
MessageInspectorBeforeSendInvokedIsEnabled()287         internal static bool MessageInspectorBeforeSendInvokedIsEnabled()
288         {
289             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(9));
290         }
291 
292         /// <summary>
293         /// Gets trace definition like: The Dispatcher invoked 'BeforeSendRequest' on a MessageInspector of type '{0}'.
294         /// Event description ID=209, Level=informational, Channel=Analytic
295         /// </summary>
296         /// <param name="eventTraceActivity">The event trace activity</param>
297         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'BeforeSendRequest' on a MessageInspector of type '{0}'.</param>
MessageInspectorBeforeSendInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)298         internal static void MessageInspectorBeforeSendInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
299         {
300             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
301             if (TD.IsEtwEventEnabled(9))
302             {
303                 TD.WriteEtwEvent(9, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
304             }
305         }
306 
307         /// <summary>
308         /// Check if trace definition is enabled
309         /// Event description ID=210, Level=Warning, Channel=Analytic
310         /// </summary>
MessageThrottleExceededIsEnabled()311         internal static bool MessageThrottleExceededIsEnabled()
312         {
313             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(10));
314         }
315 
316         /// <summary>
317         /// Gets trace definition like: The '{0}' throttle limit of '{1}' was hit.
318         /// Event description ID=210, Level=Warning, Channel=Analytic
319         /// </summary>
320         /// <param name="ThrottleName">Parameter 0 for event: The '{0}' throttle limit of '{1}' was hit.</param>
321         /// <param name="Limit">Parameter 1 for event: The '{0}' throttle limit of '{1}' was hit.</param>
MessageThrottleExceeded(string ThrottleName, long Limit)322         internal static void MessageThrottleExceeded(string ThrottleName, long Limit)
323         {
324             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
325             if (TD.IsEtwEventEnabled(10))
326             {
327                 TD.WriteEtwEvent(10, null, ThrottleName, Limit, payload.HostReference, payload.AppDomainFriendlyName);
328             }
329         }
330 
331         /// <summary>
332         /// Check if trace definition is enabled
333         /// Event description ID=211, Level=informational, Channel=Analytic
334         /// </summary>
ParameterInspectorAfterCallInvokedIsEnabled()335         internal static bool ParameterInspectorAfterCallInvokedIsEnabled()
336         {
337             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(11));
338         }
339 
340         /// <summary>
341         /// Gets trace definition like: The Dispatcher invoked 'AfterCall' on a ParameterInspector of type '{0}'.
342         /// Event description ID=211, Level=informational, Channel=Analytic
343         /// </summary>
344         /// <param name="eventTraceActivity">The event trace activity</param>
345         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'AfterCall' on a ParameterInspector of type '{0}'.</param>
ParameterInspectorAfterCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)346         internal static void ParameterInspectorAfterCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
347         {
348             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
349             if (TD.IsEtwEventEnabled(11))
350             {
351                 TD.WriteEtwEvent(11, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
352             }
353         }
354 
355         /// <summary>
356         /// Check if trace definition is enabled
357         /// Event description ID=212, Level=informational, Channel=Analytic
358         /// </summary>
ParameterInspectorBeforeCallInvokedIsEnabled()359         internal static bool ParameterInspectorBeforeCallInvokedIsEnabled()
360         {
361             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(12));
362         }
363 
364         /// <summary>
365         /// Gets trace definition like: The Dispatcher invoked 'BeforeCall' on a ParameterInspector of type '{0}'.
366         /// Event description ID=212, Level=informational, Channel=Analytic
367         /// </summary>
368         /// <param name="eventTraceActivity">The event trace activity</param>
369         /// <param name="TypeName">Parameter 0 for event: The Dispatcher invoked 'BeforeCall' on a ParameterInspector of type '{0}'.</param>
ParameterInspectorBeforeCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)370         internal static void ParameterInspectorBeforeCallInvoked(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
371         {
372             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
373             if (TD.IsEtwEventEnabled(12))
374             {
375                 TD.WriteEtwEvent(12, eventTraceActivity, TypeName, payload.HostReference, payload.AppDomainFriendlyName);
376             }
377         }
378 
379         /// <summary>
380         /// Check if trace definition is enabled
381         /// Event description ID=214, Level=informational, Channel=Analytic
382         /// </summary>
OperationCompletedIsEnabled()383         internal static bool OperationCompletedIsEnabled()
384         {
385             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(13));
386         }
387 
388         /// <summary>
389         /// Gets trace definition like: An OperationInvoker completed the call to the '{0}' method.  The method call duration was '{1}' ms.
390         /// Event description ID=214, Level=informational, Channel=Analytic
391         /// </summary>
392         /// <param name="eventTraceActivity">The event trace activity</param>
393         /// <param name="MethodName">Parameter 0 for event: An OperationInvoker completed the call to the '{0}' method.  The method call duration was '{1}' ms.</param>
394         /// <param name="Duration">Parameter 1 for event: An OperationInvoker completed the call to the '{0}' method.  The method call duration was '{1}' ms.</param>
OperationCompleted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, long Duration)395         internal static void OperationCompleted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, long Duration)
396         {
397             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
398             if (TD.IsEtwEventEnabled(13))
399             {
400                 TD.WriteEtwEvent(13, eventTraceActivity, MethodName, Duration, payload.HostReference, payload.AppDomainFriendlyName);
401             }
402         }
403 
404         /// <summary>
405         /// Check if trace definition is enabled
406         /// Event description ID=215, Level=informational, Channel=Analytic
407         /// </summary>
MessageReceivedByTransportIsEnabled()408         internal static bool MessageReceivedByTransportIsEnabled()
409         {
410             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(14));
411         }
412 
413         /// <summary>
414         /// Gets trace definition like: The transport received a message from '{0}'.
415         /// Event description ID=215, Level=informational, Channel=Analytic
416         /// </summary>
417         /// <param name="eventTraceActivity">The event trace activity</param>
418         /// <param name="ListenAddress">Parameter 0 for event: The transport received a message from '{0}'.</param>
419         /// <param name="relatedActivityId">The related event activity Id</param>
MessageReceivedByTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string ListenAddress, System.Guid relatedActivityId)420         internal static void MessageReceivedByTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string ListenAddress, System.Guid relatedActivityId)
421         {
422             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
423             if (TD.IsEtwEventEnabled(14))
424             {
425                 TD.WriteEtwTransferEvent(14, eventTraceActivity, relatedActivityId, ListenAddress, payload.HostReference, payload.AppDomainFriendlyName);
426             }
427         }
428 
429         /// <summary>
430         /// Check if trace definition is enabled
431         /// Event description ID=216, Level=informational, Channel=Analytic
432         /// </summary>
MessageSentByTransportIsEnabled()433         internal static bool MessageSentByTransportIsEnabled()
434         {
435             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(15));
436         }
437 
438         /// <summary>
439         /// Gets trace definition like: The transport sent a message to '{0}'.
440         /// Event description ID=216, Level=informational, Channel=Analytic
441         /// </summary>
442         /// <param name="eventTraceActivity">The event trace activity</param>
443         /// <param name="DestinationAddress">Parameter 0 for event: The transport sent a message to '{0}'.</param>
MessageSentByTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string DestinationAddress)444         internal static void MessageSentByTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string DestinationAddress)
445         {
446             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
447             if (TD.IsEtwEventEnabled(15))
448             {
449                 TD.WriteEtwEvent(15, eventTraceActivity, DestinationAddress, payload.HostReference, payload.AppDomainFriendlyName);
450             }
451         }
452 
453         /// <summary>
454         /// Check if trace definition is enabled
455         /// Event description ID=451, Level=informational, Channel=Analytic
456         /// </summary>
MessageLogInfoIsEnabled()457         internal static bool MessageLogInfoIsEnabled()
458         {
459             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(16));
460         }
461 
462         /// <summary>
463         /// Gets trace definition like: {0}
464         /// Event description ID=451, Level=informational, Channel=Analytic
465         /// </summary>
466         /// <param name="param0">Parameter 0 for event: {0}</param>
MessageLogInfo(string param0)467         internal static bool MessageLogInfo(string param0)
468         {
469             bool etwTraceResult = true;
470             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
471             if (TD.IsEtwEventEnabled(16))
472             {
473                 etwTraceResult = TD.WriteEtwEvent(16, null, param0, payload.AppDomainFriendlyName);
474             }
475             return etwTraceResult;
476         }
477 
478         /// <summary>
479         /// Check if trace definition is enabled
480         /// Event description ID=452, Level=Warning, Channel=Analytic
481         /// </summary>
MessageLogWarningIsEnabled()482         internal static bool MessageLogWarningIsEnabled()
483         {
484             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(17));
485         }
486 
487         /// <summary>
488         /// Gets trace definition like: {0}
489         /// Event description ID=452, Level=Warning, Channel=Analytic
490         /// </summary>
491         /// <param name="param0">Parameter 0 for event: {0}</param>
MessageLogWarning(string param0)492         internal static bool MessageLogWarning(string param0)
493         {
494             bool etwTraceResult = true;
495             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
496             if (TD.IsEtwEventEnabled(17))
497             {
498                 etwTraceResult = TD.WriteEtwEvent(17, null, param0, payload.AppDomainFriendlyName);
499             }
500             return etwTraceResult;
501         }
502 
503         /// <summary>
504         /// Check if trace definition is enabled
505         /// Event description ID=4600, Level=Warning, Channel=debug
506         /// </summary>
MessageLogEventSizeExceededIsEnabled()507         internal static bool MessageLogEventSizeExceededIsEnabled()
508         {
509             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(18));
510         }
511 
512         /// <summary>
513         /// Gets trace definition like: Message could not be logged as it exceeds the ETW event size
514         /// Event description ID=4600, Level=Warning, Channel=debug
515         /// </summary>
MessageLogEventSizeExceeded()516         internal static void MessageLogEventSizeExceeded()
517         {
518             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
519             if (TD.IsEtwEventEnabled(18))
520             {
521                 TD.WriteEtwEvent(18, null, payload.AppDomainFriendlyName);
522             }
523         }
524 
525         /// <summary>
526         /// Check if trace definition is enabled
527         /// Event description ID=404, Level=informational, Channel=Analytic
528         /// </summary>
ResumeSignpostEventIsEnabled()529         internal static bool ResumeSignpostEventIsEnabled()
530         {
531             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(19));
532         }
533 
534         /// <summary>
535         /// Gets trace definition like: Activity boundary.
536         /// Event description ID=404, Level=informational, Channel=Analytic
537         /// </summary>
538         /// <param name="traceRecord">Extended data (TraceRecord) for the event</param>
ResumeSignpostEvent(TraceRecord traceRecord)539         internal static void ResumeSignpostEvent(TraceRecord traceRecord)
540         {
541             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, traceRecord, null);
542             if (TD.IsEtwEventEnabled(19))
543             {
544                 TD.WriteEtwEvent(19, null, payload.ExtendedData, payload.AppDomainFriendlyName);
545             }
546         }
547 
548         /// <summary>
549         /// Check if trace definition is enabled
550         /// Event description ID=402, Level=informational, Channel=Analytic
551         /// </summary>
StartSignpostEventIsEnabled()552         internal static bool StartSignpostEventIsEnabled()
553         {
554             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(20));
555         }
556 
557         /// <summary>
558         /// Gets trace definition like: Activity boundary.
559         /// Event description ID=402, Level=informational, Channel=Analytic
560         /// </summary>
561         /// <param name="traceRecord">Extended data (TraceRecord) for the event</param>
StartSignpostEvent(TraceRecord traceRecord)562         internal static void StartSignpostEvent(TraceRecord traceRecord)
563         {
564             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, traceRecord, null);
565             if (TD.IsEtwEventEnabled(20))
566             {
567                 TD.WriteEtwEvent(20, null, payload.ExtendedData, payload.AppDomainFriendlyName);
568             }
569         }
570 
571         /// <summary>
572         /// Check if trace definition is enabled
573         /// Event description ID=401, Level=informational, Channel=Analytic
574         /// </summary>
StopSignpostEventIsEnabled()575         internal static bool StopSignpostEventIsEnabled()
576         {
577             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(21));
578         }
579 
580         /// <summary>
581         /// Gets trace definition like: Activity boundary.
582         /// Event description ID=401, Level=informational, Channel=Analytic
583         /// </summary>
584         /// <param name="traceRecord">Extended data (TraceRecord) for the event</param>
StopSignpostEvent(TraceRecord traceRecord)585         internal static void StopSignpostEvent(TraceRecord traceRecord)
586         {
587             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, traceRecord, null);
588             if (TD.IsEtwEventEnabled(21))
589             {
590                 TD.WriteEtwEvent(21, null, payload.ExtendedData, payload.AppDomainFriendlyName);
591             }
592         }
593 
594         /// <summary>
595         /// Check if trace definition is enabled
596         /// Event description ID=403, Level=informational, Channel=Analytic
597         /// </summary>
SuspendSignpostEventIsEnabled()598         internal static bool SuspendSignpostEventIsEnabled()
599         {
600             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(22));
601         }
602 
603         /// <summary>
604         /// Gets trace definition like: Activity boundary.
605         /// Event description ID=403, Level=informational, Channel=Analytic
606         /// </summary>
607         /// <param name="traceRecord">Extended data (TraceRecord) for the event</param>
SuspendSignpostEvent(TraceRecord traceRecord)608         internal static void SuspendSignpostEvent(TraceRecord traceRecord)
609         {
610             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, traceRecord, null);
611             if (TD.IsEtwEventEnabled(22))
612             {
613                 TD.WriteEtwEvent(22, null, payload.ExtendedData, payload.AppDomainFriendlyName);
614             }
615         }
616 
617         /// <summary>
618         /// Check if trace definition is enabled
619         /// Event description ID=218, Level=informational, Channel=Analytic
620         /// </summary>
ServiceChannelCallStopIsEnabled()621         internal static bool ServiceChannelCallStopIsEnabled()
622         {
623             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(23));
624         }
625 
626         /// <summary>
627         /// Gets trace definition like: The Client completed executing Action '{0}' associated with the '{1}' contract. The message was sent to '{2}'.
628         /// Event description ID=218, Level=informational, Channel=Analytic
629         /// </summary>
630         /// <param name="eventTraceActivity">The event trace activity</param>
631         /// <param name="Action">Parameter 0 for event: The Client completed executing Action '{0}' associated with the '{1}' contract. The message was sent to '{2}'.</param>
632         /// <param name="ContractName">Parameter 1 for event: The Client completed executing Action '{0}' associated with the '{1}' contract. The message was sent to '{2}'.</param>
633         /// <param name="Destination">Parameter 2 for event: The Client completed executing Action '{0}' associated with the '{1}' contract. The message was sent to '{2}'.</param>
ServiceChannelCallStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Action, string ContractName, string Destination)634         internal static void ServiceChannelCallStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Action, string ContractName, string Destination)
635         {
636             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
637             if (TD.IsEtwEventEnabled(23))
638             {
639                 TD.WriteEtwEvent(23, eventTraceActivity, Action, ContractName, Destination, payload.HostReference, payload.AppDomainFriendlyName);
640             }
641         }
642 
643         /// <summary>
644         /// Check if trace definition is enabled
645         /// Event description ID=219, Level=Error, Channel=Analytic
646         /// </summary>
ServiceExceptionIsEnabled()647         internal static bool ServiceExceptionIsEnabled()
648         {
649             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(24));
650         }
651 
652         /// <summary>
653         /// Gets trace definition like: There was an unhandled exception of type '{1}' during message processing.  Full Exception Details: {0}.
654         /// Event description ID=219, Level=Error, Channel=Analytic
655         /// </summary>
656         /// <param name="eventTraceActivity">The event trace activity</param>
657         /// <param name="ExceptionToString">Parameter 0 for event: There was an unhandled exception of type '{1}' during message processing.  Full Exception Details: {0}.</param>
658         /// <param name="ExceptionTypeName">Parameter 1 for event: There was an unhandled exception of type '{1}' during message processing.  Full Exception Details: {0}.</param>
ServiceException(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string ExceptionToString, string ExceptionTypeName)659         internal static void ServiceException(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string ExceptionToString, string ExceptionTypeName)
660         {
661             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
662             if (TD.IsEtwEventEnabled(24))
663             {
664                 TD.WriteEtwEvent(24, eventTraceActivity, ExceptionToString, ExceptionTypeName, payload.HostReference, payload.AppDomainFriendlyName);
665             }
666         }
667 
668         /// <summary>
669         /// Check if trace definition is enabled
670         /// Event description ID=222, Level=Warning, Channel=Analytic
671         /// </summary>
OperationFailedIsEnabled()672         internal static bool OperationFailedIsEnabled()
673         {
674             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(25));
675         }
676 
677         /// <summary>
678         /// Gets trace definition like: The '{0}' method threw an unhandled exception when invoked by the OperationInvoker. The method call duration was '{1}' ms.
679         /// Event description ID=222, Level=Warning, Channel=Analytic
680         /// </summary>
681         /// <param name="eventTraceActivity">The event trace activity</param>
682         /// <param name="MethodName">Parameter 0 for event: The '{0}' method threw an unhandled exception when invoked by the OperationInvoker. The method call duration was '{1}' ms.</param>
683         /// <param name="Duration">Parameter 1 for event: The '{0}' method threw an unhandled exception when invoked by the OperationInvoker. The method call duration was '{1}' ms.</param>
OperationFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, long Duration)684         internal static void OperationFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, long Duration)
685         {
686             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
687             if (TD.IsEtwEventEnabled(25))
688             {
689                 TD.WriteEtwEvent(25, eventTraceActivity, MethodName, Duration, payload.HostReference, payload.AppDomainFriendlyName);
690             }
691         }
692 
693         /// <summary>
694         /// Check if trace definition is enabled
695         /// Event description ID=223, Level=Warning, Channel=Analytic
696         /// </summary>
OperationFaultedIsEnabled()697         internal static bool OperationFaultedIsEnabled()
698         {
699             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(26));
700         }
701 
702         /// <summary>
703         /// Gets trace definition like: The '{0}' method threw a FaultException when invoked by the OperationInvoker. The method call duration was '{1}' ms.
704         /// Event description ID=223, Level=Warning, Channel=Analytic
705         /// </summary>
706         /// <param name="eventTraceActivity">The event trace activity</param>
707         /// <param name="MethodName">Parameter 0 for event: The '{0}' method threw a FaultException when invoked by the OperationInvoker. The method call duration was '{1}' ms.</param>
708         /// <param name="Duration">Parameter 1 for event: The '{0}' method threw a FaultException when invoked by the OperationInvoker. The method call duration was '{1}' ms.</param>
OperationFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, long Duration)709         internal static void OperationFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string MethodName, long Duration)
710         {
711             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
712             if (TD.IsEtwEventEnabled(26))
713             {
714                 TD.WriteEtwEvent(26, eventTraceActivity, MethodName, Duration, payload.HostReference, payload.AppDomainFriendlyName);
715             }
716         }
717 
718         /// <summary>
719         /// Check if trace definition is enabled
720         /// Event description ID=224, Level=Warning, Channel=Analytic
721         /// </summary>
MessageThrottleAtSeventyPercentIsEnabled()722         internal static bool MessageThrottleAtSeventyPercentIsEnabled()
723         {
724             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(27));
725         }
726 
727         /// <summary>
728         /// Gets trace definition like: The '{0}' throttle limit of '{1}' is at 70%%.
729         /// Event description ID=224, Level=Warning, Channel=Analytic
730         /// </summary>
731         /// <param name="ThrottleName">Parameter 0 for event: The '{0}' throttle limit of '{1}' is at 70%%.</param>
732         /// <param name="Limit">Parameter 1 for event: The '{0}' throttle limit of '{1}' is at 70%%.</param>
MessageThrottleAtSeventyPercent(string ThrottleName, long Limit)733         internal static void MessageThrottleAtSeventyPercent(string ThrottleName, long Limit)
734         {
735             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
736             if (TD.IsEtwEventEnabled(27))
737             {
738                 TD.WriteEtwEvent(27, null, ThrottleName, Limit, payload.HostReference, payload.AppDomainFriendlyName);
739             }
740         }
741 
742         /// <summary>
743         /// Check if trace definition is enabled
744         /// Event description ID=221, Level=informational, Channel=Analytic
745         /// </summary>
MessageReceivedFromTransportIsEnabled()746         internal static bool MessageReceivedFromTransportIsEnabled()
747         {
748             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(28));
749         }
750 
751         /// <summary>
752         /// Gets trace definition like: The Dispatcher received a message from the transport. Correlation ID == '{0}'.
753         /// Event description ID=221, Level=informational, Channel=Analytic
754         /// </summary>
755         /// <param name="eventTraceActivity">The event trace activity</param>
756         /// <param name="CorrelationId">Parameter 0 for event: The Dispatcher received a message from the transport. Correlation ID == '{0}'.</param>
757         /// <param name="reference">Reference (e.g. service reference) to be added to trace</param>
MessageReceivedFromTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, System.Guid CorrelationId, string reference)758         internal static void MessageReceivedFromTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, System.Guid CorrelationId, string reference)
759         {
760             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
761             if (TD.IsEtwEventEnabled(28))
762             {
763                 TD.WriteEtwEvent(28, eventTraceActivity, CorrelationId, reference, payload.AppDomainFriendlyName);
764             }
765         }
766 
767         /// <summary>
768         /// Check if trace definition is enabled
769         /// Event description ID=220, Level=informational, Channel=Analytic
770         /// </summary>
MessageSentToTransportIsEnabled()771         internal static bool MessageSentToTransportIsEnabled()
772         {
773             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(29));
774         }
775 
776         /// <summary>
777         /// Gets trace definition like: The Dispatcher sent a message to the transport. Correlation ID == '{0}'.
778         /// Event description ID=220, Level=informational, Channel=Analytic
779         /// </summary>
780         /// <param name="eventTraceActivity">The event trace activity</param>
781         /// <param name="CorrelationId">Parameter 0 for event: The Dispatcher sent a message to the transport. Correlation ID == '{0}'.</param>
MessageSentToTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, System.Guid CorrelationId)782         internal static void MessageSentToTransport(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, System.Guid CorrelationId)
783         {
784             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
785             if (TD.IsEtwEventEnabled(29))
786             {
787                 TD.WriteEtwEvent(29, eventTraceActivity, CorrelationId, payload.HostReference, payload.AppDomainFriendlyName);
788             }
789         }
790 
791         /// <summary>
792         /// Check if trace definition is enabled
793         /// Event description ID=509, Level=informational, Channel=Analytic
794         /// </summary>
ServiceHostOpenStartIsEnabled()795         internal static bool ServiceHostOpenStartIsEnabled()
796         {
797             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(30));
798         }
799 
800         /// <summary>
801         /// Gets trace definition like: ServiceHost Open started.
802         /// Event description ID=509, Level=informational, Channel=Analytic
803         /// </summary>
804         /// <param name="eventTraceActivity">The event trace activity</param>
ServiceHostOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)805         internal static void ServiceHostOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
806         {
807             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
808             if (TD.IsEtwEventEnabled(30))
809             {
810                 TD.WriteEtwEvent(30, eventTraceActivity, payload.AppDomainFriendlyName);
811             }
812         }
813 
814         /// <summary>
815         /// Check if trace definition is enabled
816         /// Event description ID=510, Level=informational, Channel=Analytic
817         /// </summary>
ServiceHostOpenStopIsEnabled()818         internal static bool ServiceHostOpenStopIsEnabled()
819         {
820             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(31));
821         }
822 
823         /// <summary>
824         /// Gets trace definition like: ServiceHost Open completed.
825         /// Event description ID=510, Level=informational, Channel=Analytic
826         /// </summary>
827         /// <param name="eventTraceActivity">The event trace activity</param>
ServiceHostOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)828         internal static void ServiceHostOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
829         {
830             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
831             if (TD.IsEtwEventEnabled(31))
832             {
833                 TD.WriteEtwEvent(31, eventTraceActivity, payload.AppDomainFriendlyName);
834             }
835         }
836 
837         /// <summary>
838         /// Check if trace definition is enabled
839         /// Event description ID=701, Level=informational, Channel=Analytic
840         /// </summary>
ServiceChannelOpenStartIsEnabled()841         internal static bool ServiceChannelOpenStartIsEnabled()
842         {
843             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(32));
844         }
845 
846         /// <summary>
847         /// Gets trace definition like: ServiceChannelOpen started.
848         /// Event description ID=701, Level=informational, Channel=Analytic
849         /// </summary>
850         /// <param name="eventTraceActivity">The event trace activity</param>
ServiceChannelOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)851         internal static void ServiceChannelOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
852         {
853             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
854             if (TD.IsEtwEventEnabled(32))
855             {
856                 TD.WriteEtwEvent(32, eventTraceActivity, payload.AppDomainFriendlyName);
857             }
858         }
859 
860         /// <summary>
861         /// Check if trace definition is enabled
862         /// Event description ID=702, Level=informational, Channel=Analytic
863         /// </summary>
ServiceChannelOpenStopIsEnabled()864         internal static bool ServiceChannelOpenStopIsEnabled()
865         {
866             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(33));
867         }
868 
869         /// <summary>
870         /// Gets trace definition like: ServiceChannelOpen completed.
871         /// Event description ID=702, Level=informational, Channel=Analytic
872         /// </summary>
873         /// <param name="eventTraceActivity">The event trace activity</param>
ServiceChannelOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)874         internal static void ServiceChannelOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
875         {
876             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
877             if (TD.IsEtwEventEnabled(33))
878             {
879                 TD.WriteEtwEvent(33, eventTraceActivity, payload.AppDomainFriendlyName);
880             }
881         }
882 
883         /// <summary>
884         /// Check if trace definition is enabled
885         /// Event description ID=703, Level=informational, Channel=Analytic
886         /// </summary>
ServiceChannelCallStartIsEnabled()887         internal static bool ServiceChannelCallStartIsEnabled()
888         {
889             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(34));
890         }
891 
892         /// <summary>
893         /// Gets trace definition like: ServiceChannelCall started.
894         /// Event description ID=703, Level=informational, Channel=Analytic
895         /// </summary>
896         /// <param name="eventTraceActivity">The event trace activity</param>
ServiceChannelCallStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)897         internal static void ServiceChannelCallStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
898         {
899             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
900             if (TD.IsEtwEventEnabled(34))
901             {
902                 TD.WriteEtwEvent(34, eventTraceActivity, payload.AppDomainFriendlyName);
903             }
904         }
905 
906         /// <summary>
907         /// Check if trace definition is enabled
908         /// Event description ID=704, Level=informational, Channel=Analytic
909         /// </summary>
ServiceChannelBeginCallStartIsEnabled()910         internal static bool ServiceChannelBeginCallStartIsEnabled()
911         {
912             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(35));
913         }
914 
915         /// <summary>
916         /// Gets trace definition like: ServiceChannel asynchronous calls started.
917         /// Event description ID=704, Level=informational, Channel=Analytic
918         /// </summary>
919         /// <param name="eventTraceActivity">The event trace activity</param>
ServiceChannelBeginCallStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)920         internal static void ServiceChannelBeginCallStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
921         {
922             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
923             if (TD.IsEtwEventEnabled(35))
924             {
925                 TD.WriteEtwEvent(35, eventTraceActivity, payload.AppDomainFriendlyName);
926             }
927         }
928 
929         /// <summary>
930         /// Check if trace definition is enabled
931         /// Event description ID=706, Level=verbose, Channel=Debug
932         /// </summary>
HttpSendMessageStartIsEnabled()933         internal static bool HttpSendMessageStartIsEnabled()
934         {
935             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(36));
936         }
937 
938         /// <summary>
939         /// Gets trace definition like: Http Send Request Start.
940         /// Event description ID=706, Level=verbose, Channel=Debug
941         /// </summary>
942         /// <param name="eventTraceActivity">The event trace activity</param>
HttpSendMessageStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)943         internal static void HttpSendMessageStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
944         {
945             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
946             if (TD.IsEtwEventEnabled(36))
947             {
948                 TD.WriteEtwEvent(36, eventTraceActivity, payload.AppDomainFriendlyName);
949             }
950         }
951 
952         /// <summary>
953         /// Check if trace definition is enabled
954         /// Event description ID=707, Level=verbose, Channel=Debug
955         /// </summary>
HttpSendStopIsEnabled()956         internal static bool HttpSendStopIsEnabled()
957         {
958             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(37));
959         }
960 
961         /// <summary>
962         /// Gets trace definition like: Http Send Request Stop.
963         /// Event description ID=707, Level=verbose, Channel=Debug
964         /// </summary>
965         /// <param name="eventTraceActivity">The event trace activity</param>
HttpSendStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)966         internal static void HttpSendStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
967         {
968             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
969             if (TD.IsEtwEventEnabled(37))
970             {
971                 TD.WriteEtwEvent(37, eventTraceActivity, payload.AppDomainFriendlyName);
972             }
973         }
974 
975         /// <summary>
976         /// Check if trace definition is enabled
977         /// Event description ID=708, Level=verbose, Channel=analytic
978         /// </summary>
HttpMessageReceiveStartIsEnabled()979         internal static bool HttpMessageReceiveStartIsEnabled()
980         {
981             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(38));
982         }
983 
984         /// <summary>
985         /// Gets trace definition like: Message received from http transport.
986         /// Event description ID=708, Level=verbose, Channel=analytic
987         /// </summary>
988         /// <param name="eventTraceActivity">The event trace activity</param>
HttpMessageReceiveStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)989         internal static void HttpMessageReceiveStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
990         {
991             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
992             if (TD.IsEtwEventEnabled(38))
993             {
994                 TD.WriteEtwEvent(38, eventTraceActivity, payload.AppDomainFriendlyName);
995             }
996         }
997 
998         /// <summary>
999         /// Check if trace definition is enabled
1000         /// Event description ID=709, Level=Informational, Channel=Analytic
1001         /// </summary>
DispatchMessageStartIsEnabled()1002         internal static bool DispatchMessageStartIsEnabled()
1003         {
1004             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(39));
1005         }
1006 
1007         /// <summary>
1008         /// Gets trace definition like: Message dispatching started.
1009         /// Event description ID=709, Level=Informational, Channel=Analytic
1010         /// </summary>
1011         /// <param name="eventTraceActivity">The event trace activity</param>
DispatchMessageStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1012         internal static void DispatchMessageStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1013         {
1014             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
1015             if (TD.IsEtwEventEnabled(39))
1016             {
1017                 TD.WriteEtwEvent(39, eventTraceActivity, payload.HostReference, payload.AppDomainFriendlyName);
1018             }
1019         }
1020 
1021         /// <summary>
1022         /// Check if trace definition is enabled
1023         /// Event description ID=710, Level=verbose, Channel=Analytic
1024         /// </summary>
HttpContextBeforeProcessAuthenticationIsEnabled()1025         internal static bool HttpContextBeforeProcessAuthenticationIsEnabled()
1026         {
1027             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(40));
1028         }
1029 
1030         /// <summary>
1031         /// Gets trace definition like: Start authentication for message dispatching
1032         /// Event description ID=710, Level=verbose, Channel=Analytic
1033         /// </summary>
1034         /// <param name="eventTraceActivity">The event trace activity</param>
HttpContextBeforeProcessAuthentication(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1035         internal static void HttpContextBeforeProcessAuthentication(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1036         {
1037             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1038             if (TD.IsEtwEventEnabled(40))
1039             {
1040                 TD.WriteEtwEvent(40, eventTraceActivity, payload.AppDomainFriendlyName);
1041             }
1042         }
1043 
1044         /// <summary>
1045         /// Check if trace definition is enabled
1046         /// Event description ID=711, Level=verbose, Channel=Analytic
1047         /// </summary>
DispatchMessageBeforeAuthorizationIsEnabled()1048         internal static bool DispatchMessageBeforeAuthorizationIsEnabled()
1049         {
1050             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(41));
1051         }
1052 
1053         /// <summary>
1054         /// Gets trace definition like: Start authorization for message dispatching
1055         /// Event description ID=711, Level=verbose, Channel=Analytic
1056         /// </summary>
1057         /// <param name="eventTraceActivity">The event trace activity</param>
DispatchMessageBeforeAuthorization(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1058         internal static void DispatchMessageBeforeAuthorization(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1059         {
1060             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1061             if (TD.IsEtwEventEnabled(41))
1062             {
1063                 TD.WriteEtwEvent(41, eventTraceActivity, payload.AppDomainFriendlyName);
1064             }
1065         }
1066 
1067         /// <summary>
1068         /// Check if trace definition is enabled
1069         /// Event description ID=712, Level=informational, Channel=Analytic
1070         /// </summary>
DispatchMessageStopIsEnabled()1071         internal static bool DispatchMessageStopIsEnabled()
1072         {
1073             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(42));
1074         }
1075 
1076         /// <summary>
1077         /// Gets trace definition like: Message dispatching completed
1078         /// Event description ID=712, Level=informational, Channel=Analytic
1079         /// </summary>
1080         /// <param name="eventTraceActivity">The event trace activity</param>
DispatchMessageStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1081         internal static void DispatchMessageStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1082         {
1083             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1084             if (TD.IsEtwEventEnabled(42))
1085             {
1086                 TD.WriteEtwEvent(42, eventTraceActivity, payload.AppDomainFriendlyName);
1087             }
1088         }
1089 
1090         /// <summary>
1091         /// Check if trace definition is enabled
1092         /// Event description ID=715, Level=informational, Channel=Analytic
1093         /// </summary>
ClientChannelOpenStartIsEnabled()1094         internal static bool ClientChannelOpenStartIsEnabled()
1095         {
1096             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(43));
1097         }
1098 
1099         /// <summary>
1100         /// Gets trace definition like: ServiceChannel Open Start.
1101         /// Event description ID=715, Level=informational, Channel=Analytic
1102         /// </summary>
1103         /// <param name="eventTraceActivity">The event trace activity</param>
ClientChannelOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1104         internal static void ClientChannelOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1105         {
1106             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1107             if (TD.IsEtwEventEnabled(43))
1108             {
1109                 TD.WriteEtwEvent(43, eventTraceActivity, payload.AppDomainFriendlyName);
1110             }
1111         }
1112 
1113         /// <summary>
1114         /// Check if trace definition is enabled
1115         /// Event description ID=716, Level=informational, Channel=Analytic
1116         /// </summary>
ClientChannelOpenStopIsEnabled()1117         internal static bool ClientChannelOpenStopIsEnabled()
1118         {
1119             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(44));
1120         }
1121 
1122         /// <summary>
1123         /// Gets trace definition like: ServiceChannel Open Stop.
1124         /// Event description ID=716, Level=informational, Channel=Analytic
1125         /// </summary>
1126         /// <param name="eventTraceActivity">The event trace activity</param>
ClientChannelOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1127         internal static void ClientChannelOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1128         {
1129             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1130             if (TD.IsEtwEventEnabled(44))
1131             {
1132                 TD.WriteEtwEvent(44, eventTraceActivity, payload.AppDomainFriendlyName);
1133             }
1134         }
1135 
1136         /// <summary>
1137         /// Check if trace definition is enabled
1138         /// Event description ID=717, Level=informational, Channel=Analytic
1139         /// </summary>
HttpSendStreamedMessageStartIsEnabled()1140         internal static bool HttpSendStreamedMessageStartIsEnabled()
1141         {
1142             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(45));
1143         }
1144 
1145         /// <summary>
1146         /// Gets trace definition like: Http Send streamed message started.
1147         /// Event description ID=717, Level=informational, Channel=Analytic
1148         /// </summary>
1149         /// <param name="eventTraceActivity">The event trace activity</param>
HttpSendStreamedMessageStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1150         internal static void HttpSendStreamedMessageStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1151         {
1152             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1153             if (TD.IsEtwEventEnabled(45))
1154             {
1155                 TD.WriteEtwEvent(45, eventTraceActivity, payload.AppDomainFriendlyName);
1156             }
1157         }
1158 
1159         /// <summary>
1160         /// Check if trace definition is enabled
1161         /// Event description ID=3301, Level=Warning, Channel=debug
1162         /// </summary>
ReceiveContextAbandonFailedIsEnabled()1163         internal static bool ReceiveContextAbandonFailedIsEnabled()
1164         {
1165             return (FxTrace.ShouldTraceWarning
1166                         && (FxTrace.ShouldTraceWarningToTraceSource || TD.IsEtwEventEnabled(46)));
1167         }
1168 
1169         /// <summary>
1170         /// Gets trace definition like: Failed to Abandon {0}.
1171         /// Event description ID=3301, Level=Warning, Channel=debug
1172         /// </summary>
1173         /// <param name="eventTraceActivity">The event trace activity</param>
1174         /// <param name="TypeName">Parameter 0 for event: Failed to Abandon {0}.</param>
ReceiveContextAbandonFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)1175         internal static void ReceiveContextAbandonFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
1176         {
1177             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1178             if (TD.IsEtwEventEnabled(46))
1179             {
1180                 TD.WriteEtwEvent(46, eventTraceActivity, TypeName, payload.AppDomainFriendlyName);
1181             }
1182             if (FxTrace.ShouldTraceWarningToTraceSource)
1183             {
1184                 string description = string.Format(Culture, ResourceManager.GetString("ReceiveContextAbandonFailed", Culture), TypeName);
1185                 TD.WriteTraceSource(46, description, payload);
1186             }
1187         }
1188 
1189         /// <summary>
1190         /// Check if trace definition is enabled
1191         /// Event description ID=3303, Level=informational, Channel=debug
1192         /// </summary>
ReceiveContextAbandonWithExceptionIsEnabled()1193         internal static bool ReceiveContextAbandonWithExceptionIsEnabled()
1194         {
1195             return (FxTrace.ShouldTraceInformation
1196                         && (FxTrace.ShouldTraceInformationToTraceSource || TD.IsEtwEventEnabled(47)));
1197         }
1198 
1199         /// <summary>
1200         /// Gets trace definition like: {0} was Abandoned with exception {1}.
1201         /// Event description ID=3303, Level=informational, Channel=debug
1202         /// </summary>
1203         /// <param name="eventTraceActivity">The event trace activity</param>
1204         /// <param name="TypeName">Parameter 0 for event: {0} was Abandoned with exception {1}.</param>
1205         /// <param name="ExceptionToString">Parameter 1 for event: {0} was Abandoned with exception {1}.</param>
ReceiveContextAbandonWithException(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName, string ExceptionToString)1206         internal static void ReceiveContextAbandonWithException(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName, string ExceptionToString)
1207         {
1208             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1209             if (TD.IsEtwEventEnabled(47))
1210             {
1211                 TD.WriteEtwEvent(47, eventTraceActivity, TypeName, ExceptionToString, payload.AppDomainFriendlyName);
1212             }
1213             if (FxTrace.ShouldTraceInformationToTraceSource)
1214             {
1215                 string description = string.Format(Culture, ResourceManager.GetString("ReceiveContextAbandonWithException", Culture), TypeName, ExceptionToString);
1216                 TD.WriteTraceSource(47, description, payload);
1217             }
1218         }
1219 
1220         /// <summary>
1221         /// Check if trace definition is enabled
1222         /// Event description ID=3300, Level=Warning, Channel=analytic
1223         /// </summary>
ReceiveContextCompleteFailedIsEnabled()1224         internal static bool ReceiveContextCompleteFailedIsEnabled()
1225         {
1226             return (FxTrace.ShouldTraceWarning
1227                         && (FxTrace.ShouldTraceWarningToTraceSource || TD.IsEtwEventEnabled(48)));
1228         }
1229 
1230         /// <summary>
1231         /// Gets trace definition like: Failed to Complete {0}.
1232         /// Event description ID=3300, Level=Warning, Channel=analytic
1233         /// </summary>
1234         /// <param name="eventTraceActivity">The event trace activity</param>
1235         /// <param name="TypeName">Parameter 0 for event: Failed to Complete {0}.</param>
ReceiveContextCompleteFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)1236         internal static void ReceiveContextCompleteFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName)
1237         {
1238             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1239             if (TD.IsEtwEventEnabled(48))
1240             {
1241                 TD.WriteEtwEvent(48, eventTraceActivity, TypeName, payload.AppDomainFriendlyName);
1242             }
1243             if (FxTrace.ShouldTraceWarningToTraceSource)
1244             {
1245                 string description = string.Format(Culture, ResourceManager.GetString("ReceiveContextCompleteFailed", Culture), TypeName);
1246                 TD.WriteTraceSource(48, description, payload);
1247             }
1248         }
1249 
1250         /// <summary>
1251         /// Check if trace definition is enabled
1252         /// Event description ID=3302, Level=Warning, Channel=analytic
1253         /// </summary>
ReceiveContextFaultedIsEnabled()1254         internal static bool ReceiveContextFaultedIsEnabled()
1255         {
1256             return (FxTrace.ShouldTraceWarning
1257                         && (FxTrace.ShouldTraceWarningToTraceSource || TD.IsEtwEventEnabled(49)));
1258         }
1259 
1260         /// <summary>
1261         /// Gets trace definition like: Receive Context faulted.
1262         /// Event description ID=3302, Level=Warning, Channel=analytic
1263         /// </summary>
1264         /// <param name="eventTraceActivity">The event trace activity</param>
1265         /// <param name="source">Source of the event</param>
ReceiveContextFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, object source)1266         internal static void ReceiveContextFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, object source)
1267         {
1268             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1269             if (TD.IsEtwEventEnabled(49))
1270             {
1271                 TD.WriteEtwEvent(49, eventTraceActivity, payload.EventSource, payload.AppDomainFriendlyName);
1272             }
1273             if (FxTrace.ShouldTraceWarningToTraceSource)
1274             {
1275                 string description = string.Format(Culture, ResourceManager.GetString("ReceiveContextFaulted", Culture));
1276                 TD.WriteTraceSource(49, description, payload);
1277             }
1278         }
1279 
1280         /// <summary>
1281         /// Check if trace definition is enabled
1282         /// Event description ID=3305, Level=informational, Channel=debug
1283         /// </summary>
ClientBaseCachedChannelFactoryCountIsEnabled()1284         internal static bool ClientBaseCachedChannelFactoryCountIsEnabled()
1285         {
1286             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(50));
1287         }
1288 
1289         /// <summary>
1290         /// Gets trace definition like: Number of cached channel factories is: '{0}'.  At most '{1}' channel factories can be cached.
1291         /// Event description ID=3305, Level=informational, Channel=debug
1292         /// </summary>
1293         /// <param name="Count">Parameter 0 for event: Number of cached channel factories is: '{0}'.  At most '{1}' channel factories can be cached.</param>
1294         /// <param name="MaxNum">Parameter 1 for event: Number of cached channel factories is: '{0}'.  At most '{1}' channel factories can be cached.</param>
1295         /// <param name="source">Source of the event</param>
ClientBaseCachedChannelFactoryCount(int Count, int MaxNum, object source)1296         internal static void ClientBaseCachedChannelFactoryCount(int Count, int MaxNum, object source)
1297         {
1298             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1299             if (TD.IsEtwEventEnabled(50))
1300             {
1301                 TD.WriteEtwEvent(50, null, Count, MaxNum, payload.EventSource, payload.AppDomainFriendlyName);
1302             }
1303         }
1304 
1305         /// <summary>
1306         /// Check if trace definition is enabled
1307         /// Event description ID=3306, Level=informational, Channel=debug
1308         /// </summary>
ClientBaseChannelFactoryAgedOutofCacheIsEnabled()1309         internal static bool ClientBaseChannelFactoryAgedOutofCacheIsEnabled()
1310         {
1311             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(51));
1312         }
1313 
1314         /// <summary>
1315         /// Gets trace definition like: A channel factory has been aged out of the cache because the cache has reached its limit of '{0}'.
1316         /// Event description ID=3306, Level=informational, Channel=debug
1317         /// </summary>
1318         /// <param name="Count">Parameter 0 for event: A channel factory has been aged out of the cache because the cache has reached its limit of '{0}'.</param>
1319         /// <param name="source">Source of the event</param>
ClientBaseChannelFactoryAgedOutofCache(int Count, object source)1320         internal static void ClientBaseChannelFactoryAgedOutofCache(int Count, object source)
1321         {
1322             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1323             if (TD.IsEtwEventEnabled(51))
1324             {
1325                 TD.WriteEtwEvent(51, null, Count, payload.EventSource, payload.AppDomainFriendlyName);
1326             }
1327         }
1328 
1329         /// <summary>
1330         /// Check if trace definition is enabled
1331         /// Event description ID=3307, Level=informational, Channel=debug
1332         /// </summary>
ClientBaseChannelFactoryCacheHitIsEnabled()1333         internal static bool ClientBaseChannelFactoryCacheHitIsEnabled()
1334         {
1335             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(52));
1336         }
1337 
1338         /// <summary>
1339         /// Gets trace definition like: Used matching channel factory found in cache.
1340         /// Event description ID=3307, Level=informational, Channel=debug
1341         /// </summary>
1342         /// <param name="source">Source of the event</param>
ClientBaseChannelFactoryCacheHit(object source)1343         internal static void ClientBaseChannelFactoryCacheHit(object source)
1344         {
1345             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1346             if (TD.IsEtwEventEnabled(52))
1347             {
1348                 TD.WriteEtwEvent(52, null, payload.EventSource, payload.AppDomainFriendlyName);
1349             }
1350         }
1351 
1352         /// <summary>
1353         /// Check if trace definition is enabled
1354         /// Event description ID=3308, Level=informational, Channel=debug
1355         /// </summary>
ClientBaseUsingLocalChannelFactoryIsEnabled()1356         internal static bool ClientBaseUsingLocalChannelFactoryIsEnabled()
1357         {
1358             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(53));
1359         }
1360 
1361         /// <summary>
1362         /// Gets trace definition like: Not using channel factory from cache, i.e. caching disabled for instance.
1363         /// Event description ID=3308, Level=informational, Channel=debug
1364         /// </summary>
1365         /// <param name="source">Source of the event</param>
ClientBaseUsingLocalChannelFactory(object source)1366         internal static void ClientBaseUsingLocalChannelFactory(object source)
1367         {
1368             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1369             if (TD.IsEtwEventEnabled(53))
1370             {
1371                 TD.WriteEtwEvent(53, null, payload.EventSource, payload.AppDomainFriendlyName);
1372             }
1373         }
1374 
1375         /// <summary>
1376         /// Check if trace definition is enabled
1377         /// Event description ID=3309, Level=informational, Channel=debug
1378         /// </summary>
QueryCompositionExecutedIsEnabled()1379         internal static bool QueryCompositionExecutedIsEnabled()
1380         {
1381             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(54));
1382         }
1383 
1384         /// <summary>
1385         /// Gets trace definition like: Query composition using '{0}' was executed on the Request Uri: '{1}'.
1386         /// Event description ID=3309, Level=informational, Channel=debug
1387         /// </summary>
1388         /// <param name="eventTraceActivity">The event trace activity</param>
1389         /// <param name="TypeName">Parameter 0 for event: Query composition using '{0}' was executed on the Request Uri: '{1}'.</param>
1390         /// <param name="Uri">Parameter 1 for event: Query composition using '{0}' was executed on the Request Uri: '{1}'.</param>
1391         /// <param name="source">Source of the event</param>
QueryCompositionExecuted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName, string Uri, object source)1392         internal static void QueryCompositionExecuted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string TypeName, string Uri, object source)
1393         {
1394             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1395             if (TD.IsEtwEventEnabled(54))
1396             {
1397                 TD.WriteEtwEvent(54, eventTraceActivity, TypeName, Uri, payload.EventSource, payload.AppDomainFriendlyName);
1398             }
1399         }
1400 
1401         /// <summary>
1402         /// Check if trace definition is enabled
1403         /// Event description ID=3310, Level=Error, Channel=Analytic
1404         /// </summary>
DispatchFailedIsEnabled()1405         internal static bool DispatchFailedIsEnabled()
1406         {
1407             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(55));
1408         }
1409 
1410         /// <summary>
1411         /// Gets trace definition like: The '{0}' operation was dispatched with errors.
1412         /// Event description ID=3310, Level=Error, Channel=Analytic
1413         /// </summary>
1414         /// <param name="eventTraceActivity">The event trace activity</param>
1415         /// <param name="OperationName">Parameter 0 for event: The '{0}' operation was dispatched with errors.</param>
DispatchFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string OperationName)1416         internal static void DispatchFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string OperationName)
1417         {
1418             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
1419             if (TD.IsEtwEventEnabled(55))
1420             {
1421                 TD.WriteEtwEvent(55, eventTraceActivity, OperationName, payload.HostReference, payload.AppDomainFriendlyName);
1422             }
1423         }
1424 
1425         /// <summary>
1426         /// Check if trace definition is enabled
1427         /// Event description ID=3311, Level=informational, Channel=Analytic
1428         /// </summary>
DispatchSuccessfulIsEnabled()1429         internal static bool DispatchSuccessfulIsEnabled()
1430         {
1431             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(56));
1432         }
1433 
1434         /// <summary>
1435         /// Gets trace definition like: The '{0}' operation was dispatched successfully.
1436         /// Event description ID=3311, Level=informational, Channel=Analytic
1437         /// </summary>
1438         /// <param name="eventTraceActivity">The event trace activity</param>
1439         /// <param name="OperationName">Parameter 0 for event: The '{0}' operation was dispatched successfully.</param>
DispatchSuccessful(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string OperationName)1440         internal static void DispatchSuccessful(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string OperationName)
1441         {
1442             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true);
1443             if (TD.IsEtwEventEnabled(56))
1444             {
1445                 TD.WriteEtwEvent(56, eventTraceActivity, OperationName, payload.HostReference, payload.AppDomainFriendlyName);
1446             }
1447         }
1448 
1449         /// <summary>
1450         /// Check if trace definition is enabled
1451         /// Event description ID=3312, Level=informational, Channel=Debug
1452         /// </summary>
MessageReadByEncoderIsEnabled()1453         internal static bool MessageReadByEncoderIsEnabled()
1454         {
1455             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(57));
1456         }
1457 
1458         /// <summary>
1459         /// Gets trace definition like: A message with size '{0}' bytes was read by the encoder.
1460         /// Event description ID=3312, Level=informational, Channel=Debug
1461         /// </summary>
1462         /// <param name="eventTraceActivity">The event trace activity</param>
1463         /// <param name="Size">Parameter 0 for event: A message with size '{0}' bytes was read by the encoder.</param>
1464         /// <param name="source">Source of the event</param>
MessageReadByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int Size, object source)1465         internal static void MessageReadByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int Size, object source)
1466         {
1467             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1468             if (TD.IsEtwEventEnabled(57))
1469             {
1470                 TD.WriteEtwEvent(57, eventTraceActivity, Size, payload.EventSource, payload.AppDomainFriendlyName);
1471             }
1472         }
1473 
1474         /// <summary>
1475         /// Check if trace definition is enabled
1476         /// Event description ID=3313, Level=informational, Channel=Debug
1477         /// </summary>
MessageWrittenByEncoderIsEnabled()1478         internal static bool MessageWrittenByEncoderIsEnabled()
1479         {
1480             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(58));
1481         }
1482 
1483         /// <summary>
1484         /// Gets trace definition like: A message with size '{0}' bytes was written by the encoder.
1485         /// Event description ID=3313, Level=informational, Channel=Debug
1486         /// </summary>
1487         /// <param name="eventTraceActivity">The event trace activity</param>
1488         /// <param name="Size">Parameter 0 for event: A message with size '{0}' bytes was written by the encoder.</param>
1489         /// <param name="source">Source of the event</param>
MessageWrittenByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int Size, object source)1490         internal static void MessageWrittenByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int Size, object source)
1491         {
1492             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
1493             if (TD.IsEtwEventEnabled(58))
1494             {
1495                 TD.WriteEtwEvent(58, eventTraceActivity, Size, payload.EventSource, payload.AppDomainFriendlyName);
1496             }
1497         }
1498 
1499         /// <summary>
1500         /// Check if trace definition is enabled
1501         /// Event description ID=3314, Level=Error, Channel=Analytic
1502         /// </summary>
SessionIdleTimeoutIsEnabled()1503         internal static bool SessionIdleTimeoutIsEnabled()
1504         {
1505             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(59));
1506         }
1507 
1508         /// <summary>
1509         /// Gets trace definition like: Session aborting for idle channel to uri:'{0}'.
1510         /// Event description ID=3314, Level=Error, Channel=Analytic
1511         /// </summary>
1512         /// <param name="RemoteAddress">Parameter 0 for event: Session aborting for idle channel to uri:'{0}'.</param>
SessionIdleTimeout(string RemoteAddress)1513         internal static void SessionIdleTimeout(string RemoteAddress)
1514         {
1515             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1516             if (TD.IsEtwEventEnabled(59))
1517             {
1518                 TD.WriteEtwEvent(59, null, RemoteAddress, payload.AppDomainFriendlyName);
1519             }
1520         }
1521 
1522         /// <summary>
1523         /// Check if trace definition is enabled
1524         /// Event description ID=3319, Level=Verbose, Channel=Debug
1525         /// </summary>
SocketAcceptEnqueuedIsEnabled()1526         internal static bool SocketAcceptEnqueuedIsEnabled()
1527         {
1528             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(60));
1529         }
1530 
1531         /// <summary>
1532         /// Gets trace definition like: Connection accept started.
1533         /// Event description ID=3319, Level=Verbose, Channel=Debug
1534         /// </summary>
1535         /// <param name="eventTraceActivity">The event trace activity</param>
SocketAcceptEnqueued(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1536         internal static void SocketAcceptEnqueued(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1537         {
1538             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1539             if (TD.IsEtwEventEnabled(60))
1540             {
1541                 TD.WriteEtwEvent(60, eventTraceActivity, payload.AppDomainFriendlyName);
1542             }
1543         }
1544 
1545         /// <summary>
1546         /// Check if trace definition is enabled
1547         /// Event description ID=3320, Level=Verbose, Channel=Debug
1548         /// </summary>
SocketAcceptedIsEnabled()1549         internal static bool SocketAcceptedIsEnabled()
1550         {
1551             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(61));
1552         }
1553 
1554         /// <summary>
1555         /// Gets trace definition like: ListenerId:{0} accepted SocketId:{1}.
1556         /// Event description ID=3320, Level=Verbose, Channel=Debug
1557         /// </summary>
1558         /// <param name="eventTraceActivity">The event trace activity</param>
1559         /// <param name="ListenerHashCode">Parameter 0 for event: ListenerId:{0} accepted SocketId:{1}.</param>
1560         /// <param name="SocketHashCode">Parameter 1 for event: ListenerId:{0} accepted SocketId:{1}.</param>
SocketAccepted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int ListenerHashCode, int SocketHashCode)1561         internal static void SocketAccepted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int ListenerHashCode, int SocketHashCode)
1562         {
1563             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1564             if (TD.IsEtwEventEnabled(61))
1565             {
1566                 TD.WriteEtwEvent(61, eventTraceActivity, ListenerHashCode, SocketHashCode, payload.AppDomainFriendlyName);
1567             }
1568         }
1569 
1570         /// <summary>
1571         /// Check if trace definition is enabled
1572         /// Event description ID=3321, Level=Verbose, Channel=Debug
1573         /// </summary>
ConnectionPoolMissIsEnabled()1574         internal static bool ConnectionPoolMissIsEnabled()
1575         {
1576             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(62));
1577         }
1578 
1579         /// <summary>
1580         /// Gets trace definition like: Pool for {0} has no available connection and {1} busy connections.
1581         /// Event description ID=3321, Level=Verbose, Channel=Debug
1582         /// </summary>
1583         /// <param name="PoolKey">Parameter 0 for event: Pool for {0} has no available connection and {1} busy connections.</param>
1584         /// <param name="busy">Parameter 1 for event: Pool for {0} has no available connection and {1} busy connections.</param>
ConnectionPoolMiss(string PoolKey, int busy)1585         internal static void ConnectionPoolMiss(string PoolKey, int busy)
1586         {
1587             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1588             if (TD.IsEtwEventEnabled(62))
1589             {
1590                 TD.WriteEtwEvent(62, null, PoolKey, busy, payload.AppDomainFriendlyName);
1591             }
1592         }
1593 
1594         /// <summary>
1595         /// Check if trace definition is enabled
1596         /// Event description ID=3322, Level=Verbose, Channel=Debug
1597         /// </summary>
DispatchFormatterDeserializeRequestStartIsEnabled()1598         internal static bool DispatchFormatterDeserializeRequestStartIsEnabled()
1599         {
1600             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(63));
1601         }
1602 
1603         /// <summary>
1604         /// Gets trace definition like: Dispatcher started deserialization the request message.
1605         /// Event description ID=3322, Level=Verbose, Channel=Debug
1606         /// </summary>
1607         /// <param name="eventTraceActivity">The event trace activity</param>
DispatchFormatterDeserializeRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1608         internal static void DispatchFormatterDeserializeRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1609         {
1610             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1611             if (TD.IsEtwEventEnabled(63))
1612             {
1613                 TD.WriteEtwEvent(63, eventTraceActivity, payload.AppDomainFriendlyName);
1614             }
1615         }
1616 
1617         /// <summary>
1618         /// Check if trace definition is enabled
1619         /// Event description ID=3323, Level=Verbose, Channel=Debug
1620         /// </summary>
DispatchFormatterDeserializeRequestStopIsEnabled()1621         internal static bool DispatchFormatterDeserializeRequestStopIsEnabled()
1622         {
1623             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(64));
1624         }
1625 
1626         /// <summary>
1627         /// Gets trace definition like: Dispatcher completed deserialization the request message.
1628         /// Event description ID=3323, Level=Verbose, Channel=Debug
1629         /// </summary>
1630         /// <param name="eventTraceActivity">The event trace activity</param>
DispatchFormatterDeserializeRequestStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1631         internal static void DispatchFormatterDeserializeRequestStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1632         {
1633             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1634             if (TD.IsEtwEventEnabled(64))
1635             {
1636                 TD.WriteEtwEvent(64, eventTraceActivity, payload.AppDomainFriendlyName);
1637             }
1638         }
1639 
1640         /// <summary>
1641         /// Check if trace definition is enabled
1642         /// Event description ID=3324, Level=Verbose, Channel=Debug
1643         /// </summary>
DispatchFormatterSerializeReplyStartIsEnabled()1644         internal static bool DispatchFormatterSerializeReplyStartIsEnabled()
1645         {
1646             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(65));
1647         }
1648 
1649         /// <summary>
1650         /// Gets trace definition like: Dispatcher started serialization of the reply message.
1651         /// Event description ID=3324, Level=Verbose, Channel=Debug
1652         /// </summary>
1653         /// <param name="eventTraceActivity">The event trace activity</param>
DispatchFormatterSerializeReplyStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1654         internal static void DispatchFormatterSerializeReplyStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1655         {
1656             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1657             if (TD.IsEtwEventEnabled(65))
1658             {
1659                 TD.WriteEtwEvent(65, eventTraceActivity, payload.AppDomainFriendlyName);
1660             }
1661         }
1662 
1663         /// <summary>
1664         /// Check if trace definition is enabled
1665         /// Event description ID=3325, Level=Verbose, Channel=Debug
1666         /// </summary>
DispatchFormatterSerializeReplyStopIsEnabled()1667         internal static bool DispatchFormatterSerializeReplyStopIsEnabled()
1668         {
1669             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(66));
1670         }
1671 
1672         /// <summary>
1673         /// Gets trace definition like: Dispatcher completed serialization of the reply message.
1674         /// Event description ID=3325, Level=Verbose, Channel=Debug
1675         /// </summary>
1676         /// <param name="eventTraceActivity">The event trace activity</param>
DispatchFormatterSerializeReplyStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1677         internal static void DispatchFormatterSerializeReplyStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1678         {
1679             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1680             if (TD.IsEtwEventEnabled(66))
1681             {
1682                 TD.WriteEtwEvent(66, eventTraceActivity, payload.AppDomainFriendlyName);
1683             }
1684         }
1685 
1686         /// <summary>
1687         /// Check if trace definition is enabled
1688         /// Event description ID=3326, Level=Verbose, Channel=Debug
1689         /// </summary>
ClientFormatterSerializeRequestStartIsEnabled()1690         internal static bool ClientFormatterSerializeRequestStartIsEnabled()
1691         {
1692             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(67));
1693         }
1694 
1695         /// <summary>
1696         /// Gets trace definition like: Client request serialization started.
1697         /// Event description ID=3326, Level=Verbose, Channel=Debug
1698         /// </summary>
1699         /// <param name="eventTraceActivity">The event trace activity</param>
ClientFormatterSerializeRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1700         internal static void ClientFormatterSerializeRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1701         {
1702             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1703             if (TD.IsEtwEventEnabled(67))
1704             {
1705                 TD.WriteEtwEvent(67, eventTraceActivity, payload.AppDomainFriendlyName);
1706             }
1707         }
1708 
1709         /// <summary>
1710         /// Check if trace definition is enabled
1711         /// Event description ID=3327, Level=Verbose, Channel=Debug
1712         /// </summary>
ClientFormatterSerializeRequestStopIsEnabled()1713         internal static bool ClientFormatterSerializeRequestStopIsEnabled()
1714         {
1715             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(68));
1716         }
1717 
1718         /// <summary>
1719         /// Gets trace definition like: Client completed serialization of the request message.
1720         /// Event description ID=3327, Level=Verbose, Channel=Debug
1721         /// </summary>
1722         /// <param name="eventTraceActivity">The event trace activity</param>
ClientFormatterSerializeRequestStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1723         internal static void ClientFormatterSerializeRequestStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1724         {
1725             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1726             if (TD.IsEtwEventEnabled(68))
1727             {
1728                 TD.WriteEtwEvent(68, eventTraceActivity, payload.AppDomainFriendlyName);
1729             }
1730         }
1731 
1732         /// <summary>
1733         /// Check if trace definition is enabled
1734         /// Event description ID=3328, Level=Verbose, Channel=Debug
1735         /// </summary>
ClientFormatterDeserializeReplyStartIsEnabled()1736         internal static bool ClientFormatterDeserializeReplyStartIsEnabled()
1737         {
1738             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(69));
1739         }
1740 
1741         /// <summary>
1742         /// Gets trace definition like: Client started deserializing the reply message.
1743         /// Event description ID=3328, Level=Verbose, Channel=Debug
1744         /// </summary>
1745         /// <param name="eventTraceActivity">The event trace activity</param>
ClientFormatterDeserializeReplyStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1746         internal static void ClientFormatterDeserializeReplyStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1747         {
1748             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1749             if (TD.IsEtwEventEnabled(69))
1750             {
1751                 TD.WriteEtwEvent(69, eventTraceActivity, payload.AppDomainFriendlyName);
1752             }
1753         }
1754 
1755         /// <summary>
1756         /// Check if trace definition is enabled
1757         /// Event description ID=3329, Level=Verbose, Channel=Debug
1758         /// </summary>
ClientFormatterDeserializeReplyStopIsEnabled()1759         internal static bool ClientFormatterDeserializeReplyStopIsEnabled()
1760         {
1761             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(70));
1762         }
1763 
1764         /// <summary>
1765         /// Gets trace definition like: Client completed deserializing the reply message.
1766         /// Event description ID=3329, Level=Verbose, Channel=Debug
1767         /// </summary>
1768         /// <param name="eventTraceActivity">The event trace activity</param>
ClientFormatterDeserializeReplyStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1769         internal static void ClientFormatterDeserializeReplyStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1770         {
1771             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1772             if (TD.IsEtwEventEnabled(70))
1773             {
1774                 TD.WriteEtwEvent(70, eventTraceActivity, payload.AppDomainFriendlyName);
1775             }
1776         }
1777 
1778         /// <summary>
1779         /// Check if trace definition is enabled
1780         /// Event description ID=3330, Level=Verbose, Channel=Debug
1781         /// </summary>
SecurityNegotiationStartIsEnabled()1782         internal static bool SecurityNegotiationStartIsEnabled()
1783         {
1784             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(71));
1785         }
1786 
1787         /// <summary>
1788         /// Gets trace definition like: Security negotiation started.
1789         /// Event description ID=3330, Level=Verbose, Channel=Debug
1790         /// </summary>
1791         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityNegotiationStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1792         internal static void SecurityNegotiationStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1793         {
1794             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1795             if (TD.IsEtwEventEnabled(71))
1796             {
1797                 TD.WriteEtwEvent(71, eventTraceActivity, payload.AppDomainFriendlyName);
1798             }
1799         }
1800 
1801         /// <summary>
1802         /// Check if trace definition is enabled
1803         /// Event description ID=3331, Level=Verbose, Channel=Debug
1804         /// </summary>
SecurityNegotiationStopIsEnabled()1805         internal static bool SecurityNegotiationStopIsEnabled()
1806         {
1807             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(72));
1808         }
1809 
1810         /// <summary>
1811         /// Gets trace definition like: Security negotiation completed.
1812         /// Event description ID=3331, Level=Verbose, Channel=Debug
1813         /// </summary>
1814         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityNegotiationStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1815         internal static void SecurityNegotiationStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1816         {
1817             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1818             if (TD.IsEtwEventEnabled(72))
1819             {
1820                 TD.WriteEtwEvent(72, eventTraceActivity, payload.AppDomainFriendlyName);
1821             }
1822         }
1823 
1824         /// <summary>
1825         /// Check if trace definition is enabled
1826         /// Event description ID=3332, Level=Verbose, Channel=Debug
1827         /// </summary>
SecurityTokenProviderOpenedIsEnabled()1828         internal static bool SecurityTokenProviderOpenedIsEnabled()
1829         {
1830             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(73));
1831         }
1832 
1833         /// <summary>
1834         /// Gets trace definition like: SecurityTokenProvider opening completed.
1835         /// Event description ID=3332, Level=Verbose, Channel=Debug
1836         /// </summary>
1837         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityTokenProviderOpened(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1838         internal static void SecurityTokenProviderOpened(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1839         {
1840             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1841             if (TD.IsEtwEventEnabled(73))
1842             {
1843                 TD.WriteEtwEvent(73, eventTraceActivity, payload.AppDomainFriendlyName);
1844             }
1845         }
1846 
1847         /// <summary>
1848         /// Check if trace definition is enabled
1849         /// Event description ID=3333, Level=Verbose, Channel=Debug
1850         /// </summary>
OutgoingMessageSecuredIsEnabled()1851         internal static bool OutgoingMessageSecuredIsEnabled()
1852         {
1853             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(74));
1854         }
1855 
1856         /// <summary>
1857         /// Gets trace definition like: Outgoing message has been secured.
1858         /// Event description ID=3333, Level=Verbose, Channel=Debug
1859         /// </summary>
1860         /// <param name="eventTraceActivity">The event trace activity</param>
OutgoingMessageSecured(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1861         internal static void OutgoingMessageSecured(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1862         {
1863             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1864             if (TD.IsEtwEventEnabled(74))
1865             {
1866                 TD.WriteEtwEvent(74, eventTraceActivity, payload.AppDomainFriendlyName);
1867             }
1868         }
1869 
1870         /// <summary>
1871         /// Check if trace definition is enabled
1872         /// Event description ID=3334, Level=Verbose, Channel=Debug
1873         /// </summary>
IncomingMessageVerifiedIsEnabled()1874         internal static bool IncomingMessageVerifiedIsEnabled()
1875         {
1876             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(75));
1877         }
1878 
1879         /// <summary>
1880         /// Gets trace definition like: Incoming message has been verified.
1881         /// Event description ID=3334, Level=Verbose, Channel=Debug
1882         /// </summary>
1883         /// <param name="eventTraceActivity">The event trace activity</param>
IncomingMessageVerified(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1884         internal static void IncomingMessageVerified(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1885         {
1886             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1887             if (TD.IsEtwEventEnabled(75))
1888             {
1889                 TD.WriteEtwEvent(75, eventTraceActivity, payload.AppDomainFriendlyName);
1890             }
1891         }
1892 
1893         /// <summary>
1894         /// Check if trace definition is enabled
1895         /// Event description ID=3335, Level=Verbose, Channel=Debug
1896         /// </summary>
GetServiceInstanceStartIsEnabled()1897         internal static bool GetServiceInstanceStartIsEnabled()
1898         {
1899             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(76));
1900         }
1901 
1902         /// <summary>
1903         /// Gets trace definition like: Service instance retrieval started.
1904         /// Event description ID=3335, Level=Verbose, Channel=Debug
1905         /// </summary>
1906         /// <param name="eventTraceActivity">The event trace activity</param>
GetServiceInstanceStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1907         internal static void GetServiceInstanceStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1908         {
1909             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1910             if (TD.IsEtwEventEnabled(76))
1911             {
1912                 TD.WriteEtwEvent(76, eventTraceActivity, payload.AppDomainFriendlyName);
1913             }
1914         }
1915 
1916         /// <summary>
1917         /// Check if trace definition is enabled
1918         /// Event description ID=3336, Level=Verbose, Channel=Debug
1919         /// </summary>
GetServiceInstanceStopIsEnabled()1920         internal static bool GetServiceInstanceStopIsEnabled()
1921         {
1922             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(77));
1923         }
1924 
1925         /// <summary>
1926         /// Gets trace definition like: Service instance retrieved.
1927         /// Event description ID=3336, Level=Verbose, Channel=Debug
1928         /// </summary>
1929         /// <param name="eventTraceActivity">The event trace activity</param>
GetServiceInstanceStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)1930         internal static void GetServiceInstanceStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
1931         {
1932             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1933             if (TD.IsEtwEventEnabled(77))
1934             {
1935                 TD.WriteEtwEvent(77, eventTraceActivity, payload.AppDomainFriendlyName);
1936             }
1937         }
1938 
1939         /// <summary>
1940         /// Check if trace definition is enabled
1941         /// Event description ID=3337, Level=Verbose, Channel=Debug
1942         /// </summary>
ChannelReceiveStartIsEnabled()1943         internal static bool ChannelReceiveStartIsEnabled()
1944         {
1945             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(78));
1946         }
1947 
1948         /// <summary>
1949         /// Gets trace definition like: ChannelHandlerId:{0} - Message receive loop started.
1950         /// Event description ID=3337, Level=Verbose, Channel=Debug
1951         /// </summary>
1952         /// <param name="eventTraceActivity">The event trace activity</param>
1953         /// <param name="ChannelId">Parameter 0 for event: ChannelHandlerId:{0} - Message receive loop started.</param>
ChannelReceiveStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int ChannelId)1954         internal static void ChannelReceiveStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int ChannelId)
1955         {
1956             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1957             if (TD.IsEtwEventEnabled(78))
1958             {
1959                 TD.WriteEtwEvent(78, eventTraceActivity, ChannelId, payload.AppDomainFriendlyName);
1960             }
1961         }
1962 
1963         /// <summary>
1964         /// Check if trace definition is enabled
1965         /// Event description ID=3338, Level=Verbose, Channel=Debug
1966         /// </summary>
ChannelReceiveStopIsEnabled()1967         internal static bool ChannelReceiveStopIsEnabled()
1968         {
1969             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(79));
1970         }
1971 
1972         /// <summary>
1973         /// Gets trace definition like: ChannelHandlerId:{0} - Message receive loop stopped.
1974         /// Event description ID=3338, Level=Verbose, Channel=Debug
1975         /// </summary>
1976         /// <param name="eventTraceActivity">The event trace activity</param>
1977         /// <param name="ChannelId">Parameter 0 for event: ChannelHandlerId:{0} - Message receive loop stopped.</param>
ChannelReceiveStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int ChannelId)1978         internal static void ChannelReceiveStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int ChannelId)
1979         {
1980             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
1981             if (TD.IsEtwEventEnabled(79))
1982             {
1983                 TD.WriteEtwEvent(79, eventTraceActivity, ChannelId, payload.AppDomainFriendlyName);
1984             }
1985         }
1986 
1987         /// <summary>
1988         /// Check if trace definition is enabled
1989         /// Event description ID=3339, Level=Verbose, Channel=Debug
1990         /// </summary>
ChannelFactoryCreatedIsEnabled()1991         internal static bool ChannelFactoryCreatedIsEnabled()
1992         {
1993             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(80));
1994         }
1995 
1996         /// <summary>
1997         /// Gets trace definition like: ChannelFactory created .
1998         /// Event description ID=3339, Level=Verbose, Channel=Debug
1999         /// </summary>
2000         /// <param name="source">Source of the event</param>
ChannelFactoryCreated(object source)2001         internal static void ChannelFactoryCreated(object source)
2002         {
2003             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
2004             if (TD.IsEtwEventEnabled(80))
2005             {
2006                 TD.WriteEtwEvent(80, null, payload.EventSource, payload.AppDomainFriendlyName);
2007             }
2008         }
2009 
2010         /// <summary>
2011         /// Check if trace definition is enabled
2012         /// Event description ID=3340, Level=Verbose, Channel=Debug
2013         /// </summary>
PipeConnectionAcceptStartIsEnabled()2014         internal static bool PipeConnectionAcceptStartIsEnabled()
2015         {
2016             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(81));
2017         }
2018 
2019         /// <summary>
2020         /// Gets trace definition like: Pipe connection accept started on {0} .
2021         /// Event description ID=3340, Level=Verbose, Channel=Debug
2022         /// </summary>
2023         /// <param name="eventTraceActivity">The event trace activity</param>
2024         /// <param name="uri">Parameter 0 for event: Pipe connection accept started on {0} .</param>
PipeConnectionAcceptStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string uri)2025         internal static void PipeConnectionAcceptStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string uri)
2026         {
2027             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2028             if (TD.IsEtwEventEnabled(81))
2029             {
2030                 TD.WriteEtwEvent(81, eventTraceActivity, uri, payload.AppDomainFriendlyName);
2031             }
2032         }
2033 
2034         /// <summary>
2035         /// Check if trace definition is enabled
2036         /// Event description ID=3341, Level=Verbose, Channel=Debug
2037         /// </summary>
PipeConnectionAcceptStopIsEnabled()2038         internal static bool PipeConnectionAcceptStopIsEnabled()
2039         {
2040             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(82));
2041         }
2042 
2043         /// <summary>
2044         /// Gets trace definition like: Pipe connection accepted.
2045         /// Event description ID=3341, Level=Verbose, Channel=Debug
2046         /// </summary>
2047         /// <param name="eventTraceActivity">The event trace activity</param>
PipeConnectionAcceptStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2048         internal static void PipeConnectionAcceptStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2049         {
2050             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2051             if (TD.IsEtwEventEnabled(82))
2052             {
2053                 TD.WriteEtwEvent(82, eventTraceActivity, payload.AppDomainFriendlyName);
2054             }
2055         }
2056 
2057         /// <summary>
2058         /// Check if trace definition is enabled
2059         /// Event description ID=3342, Level=Verbose, Channel=Debug
2060         /// </summary>
EstablishConnectionStartIsEnabled()2061         internal static bool EstablishConnectionStartIsEnabled()
2062         {
2063             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(83));
2064         }
2065 
2066         /// <summary>
2067         /// Gets trace definition like: Connection establishment started for {0}.
2068         /// Event description ID=3342, Level=Verbose, Channel=Debug
2069         /// </summary>
2070         /// <param name="eventTraceActivity">The event trace activity</param>
2071         /// <param name="Key">Parameter 0 for event: Connection establishment started for {0}.</param>
EstablishConnectionStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Key)2072         internal static void EstablishConnectionStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Key)
2073         {
2074             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2075             if (TD.IsEtwEventEnabled(83))
2076             {
2077                 TD.WriteEtwEvent(83, eventTraceActivity, Key, payload.AppDomainFriendlyName);
2078             }
2079         }
2080 
2081         /// <summary>
2082         /// Check if trace definition is enabled
2083         /// Event description ID=3343, Level=Verbose, Channel=Debug
2084         /// </summary>
EstablishConnectionStopIsEnabled()2085         internal static bool EstablishConnectionStopIsEnabled()
2086         {
2087             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(84));
2088         }
2089 
2090         /// <summary>
2091         /// Gets trace definition like: Connection established.
2092         /// Event description ID=3343, Level=Verbose, Channel=Debug
2093         /// </summary>
2094         /// <param name="eventTraceActivity">The event trace activity</param>
EstablishConnectionStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2095         internal static void EstablishConnectionStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2096         {
2097             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2098             if (TD.IsEtwEventEnabled(84))
2099             {
2100                 TD.WriteEtwEvent(84, eventTraceActivity, payload.AppDomainFriendlyName);
2101             }
2102         }
2103 
2104         /// <summary>
2105         /// Check if trace definition is enabled
2106         /// Event description ID=3345, Level=Verbose, Channel=Debug
2107         /// </summary>
SessionPreambleUnderstoodIsEnabled()2108         internal static bool SessionPreambleUnderstoodIsEnabled()
2109         {
2110             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(85));
2111         }
2112 
2113         /// <summary>
2114         /// Gets trace definition like: Session preamble for '{0}' understood.
2115         /// Event description ID=3345, Level=Verbose, Channel=Debug
2116         /// </summary>
2117         /// <param name="Via">Parameter 0 for event: Session preamble for '{0}' understood.</param>
SessionPreambleUnderstood(string Via)2118         internal static void SessionPreambleUnderstood(string Via)
2119         {
2120             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2121             if (TD.IsEtwEventEnabled(85))
2122             {
2123                 TD.WriteEtwEvent(85, null, Via, payload.AppDomainFriendlyName);
2124             }
2125         }
2126 
2127         /// <summary>
2128         /// Check if trace definition is enabled
2129         /// Event description ID=3346, Level=Error, Channel=Debug
2130         /// </summary>
ConnectionReaderSendFaultIsEnabled()2131         internal static bool ConnectionReaderSendFaultIsEnabled()
2132         {
2133             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(86));
2134         }
2135 
2136         /// <summary>
2137         /// Gets trace definition like: Connection reader sending fault '{0}'.
2138         /// Event description ID=3346, Level=Error, Channel=Debug
2139         /// </summary>
2140         /// <param name="FaultString">Parameter 0 for event: Connection reader sending fault '{0}'. </param>
ConnectionReaderSendFault(string FaultString)2141         internal static void ConnectionReaderSendFault(string FaultString)
2142         {
2143             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2144             if (TD.IsEtwEventEnabled(86))
2145             {
2146                 TD.WriteEtwEvent(86, null, FaultString, payload.AppDomainFriendlyName);
2147             }
2148         }
2149 
2150         /// <summary>
2151         /// Check if trace definition is enabled
2152         /// Event description ID=3347, Level=Verbose, Channel=Debug
2153         /// </summary>
SocketAcceptClosedIsEnabled()2154         internal static bool SocketAcceptClosedIsEnabled()
2155         {
2156             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(87));
2157         }
2158 
2159         /// <summary>
2160         /// Gets trace definition like: Socket accept closed.
2161         /// Event description ID=3347, Level=Verbose, Channel=Debug
2162         /// </summary>
2163         /// <param name="eventTraceActivity">The event trace activity</param>
SocketAcceptClosed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2164         internal static void SocketAcceptClosed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2165         {
2166             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2167             if (TD.IsEtwEventEnabled(87))
2168             {
2169                 TD.WriteEtwEvent(87, eventTraceActivity, payload.AppDomainFriendlyName);
2170             }
2171         }
2172 
2173         /// <summary>
2174         /// Check if trace definition is enabled
2175         /// Event description ID=3348, Level=Critical, Channel=analytic
2176         /// </summary>
ServiceHostFaultedIsEnabled()2177         internal static bool ServiceHostFaultedIsEnabled()
2178         {
2179             return (FxTrace.ShouldTraceCritical && TD.IsEtwEventEnabled(88));
2180         }
2181 
2182         /// <summary>
2183         /// Gets trace definition like: Service host faulted.
2184         /// Event description ID=3348, Level=Critical, Channel=analytic
2185         /// </summary>
2186         /// <param name="eventTraceActivity">The event trace activity</param>
2187         /// <param name="source">Source of the event</param>
ServiceHostFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, object source)2188         internal static void ServiceHostFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, object source)
2189         {
2190             TracePayload payload = FxTrace.Trace.GetSerializedPayload(source, null, null);
2191             if (TD.IsEtwEventEnabled(88))
2192             {
2193                 TD.WriteEtwEvent(88, eventTraceActivity, payload.EventSource, payload.AppDomainFriendlyName);
2194             }
2195         }
2196 
2197         /// <summary>
2198         /// Check if trace definition is enabled
2199         /// Event description ID=3349, Level=Verbose, Channel=Debug
2200         /// </summary>
ListenerOpenStartIsEnabled()2201         internal static bool ListenerOpenStartIsEnabled()
2202         {
2203             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(89));
2204         }
2205 
2206         /// <summary>
2207         /// Gets trace definition like: Listener opening for '{0}'.
2208         /// Event description ID=3349, Level=Verbose, Channel=Debug
2209         /// </summary>
2210         /// <param name="eventTraceActivity">The event trace activity</param>
2211         /// <param name="Uri">Parameter 0 for event: Listener opening for '{0}'.</param>
2212         /// <param name="relatedActivityId">The related event activity Id</param>
ListenerOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Uri, System.Guid relatedActivityId)2213         internal static void ListenerOpenStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Uri, System.Guid relatedActivityId)
2214         {
2215             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2216             if (TD.IsEtwEventEnabled(89))
2217             {
2218                 TD.WriteEtwTransferEvent(89, eventTraceActivity, relatedActivityId, Uri, payload.AppDomainFriendlyName);
2219             }
2220         }
2221 
2222         /// <summary>
2223         /// Check if trace definition is enabled
2224         /// Event description ID=3350, Level=Verbose, Channel=Debug
2225         /// </summary>
ListenerOpenStopIsEnabled()2226         internal static bool ListenerOpenStopIsEnabled()
2227         {
2228             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(90));
2229         }
2230 
2231         /// <summary>
2232         /// Gets trace definition like: Listener open completed.
2233         /// Event description ID=3350, Level=Verbose, Channel=Debug
2234         /// </summary>
2235         /// <param name="eventTraceActivity">The event trace activity</param>
ListenerOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2236         internal static void ListenerOpenStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2237         {
2238             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2239             if (TD.IsEtwEventEnabled(90))
2240             {
2241                 TD.WriteEtwEvent(90, eventTraceActivity, payload.AppDomainFriendlyName);
2242             }
2243         }
2244 
2245         /// <summary>
2246         /// Check if trace definition is enabled
2247         /// Event description ID=3351, Level=Verbose, Channel=analytic
2248         /// </summary>
ServerMaxPooledConnectionsQuotaReachedIsEnabled()2249         internal static bool ServerMaxPooledConnectionsQuotaReachedIsEnabled()
2250         {
2251             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(91));
2252         }
2253 
2254         /// <summary>
2255         /// Gets trace definition like: Server max pooled connections quota reached.
2256         /// Event description ID=3351, Level=Verbose, Channel=analytic
2257         /// </summary>
ServerMaxPooledConnectionsQuotaReached()2258         internal static void ServerMaxPooledConnectionsQuotaReached()
2259         {
2260             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2261             if (TD.IsEtwEventEnabled(91))
2262             {
2263                 TD.WriteEtwEvent(91, null, payload.AppDomainFriendlyName);
2264             }
2265         }
2266 
2267         /// <summary>
2268         /// Check if trace definition is enabled
2269         /// Event description ID=3352, Level=Error, Channel=analytic
2270         /// </summary>
TcpConnectionTimedOutIsEnabled()2271         internal static bool TcpConnectionTimedOutIsEnabled()
2272         {
2273             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(92));
2274         }
2275 
2276         /// <summary>
2277         /// Gets trace definition like: SocketId:{0} to remote address {1} timed out.
2278         /// Event description ID=3352, Level=Error, Channel=analytic
2279         /// </summary>
2280         /// <param name="SocketId">Parameter 0 for event: SocketId:{0} to remote address {1} timed out.</param>
2281         /// <param name="Uri">Parameter 1 for event: SocketId:{0} to remote address {1} timed out.</param>
TcpConnectionTimedOut(int SocketId, string Uri)2282         internal static void TcpConnectionTimedOut(int SocketId, string Uri)
2283         {
2284             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2285             if (TD.IsEtwEventEnabled(92))
2286             {
2287                 TD.WriteEtwEvent(92, null, SocketId, Uri, payload.AppDomainFriendlyName);
2288             }
2289         }
2290 
2291         /// <summary>
2292         /// Check if trace definition is enabled
2293         /// Event description ID=3353, Level=Warning, Channel=analytic
2294         /// </summary>
TcpConnectionResetErrorIsEnabled()2295         internal static bool TcpConnectionResetErrorIsEnabled()
2296         {
2297             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(93));
2298         }
2299 
2300         /// <summary>
2301         /// Gets trace definition like: SocketId:{0} to remote address {1} had a connection reset error.
2302         /// Event description ID=3353, Level=Warning, Channel=analytic
2303         /// </summary>
2304         /// <param name="SocketId">Parameter 0 for event: SocketId:{0} to remote address {1} had a connection reset error.</param>
2305         /// <param name="Uri">Parameter 1 for event: SocketId:{0} to remote address {1} had a connection reset error.</param>
TcpConnectionResetError(int SocketId, string Uri)2306         internal static void TcpConnectionResetError(int SocketId, string Uri)
2307         {
2308             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2309             if (TD.IsEtwEventEnabled(93))
2310             {
2311                 TD.WriteEtwEvent(93, null, SocketId, Uri, payload.AppDomainFriendlyName);
2312             }
2313         }
2314 
2315         /// <summary>
2316         /// Check if trace definition is enabled
2317         /// Event description ID=3354, Level=Verbose, Channel=Debug
2318         /// </summary>
ServiceSecurityNegotiationCompletedIsEnabled()2319         internal static bool ServiceSecurityNegotiationCompletedIsEnabled()
2320         {
2321             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(94));
2322         }
2323 
2324         /// <summary>
2325         /// Gets trace definition like: Service security negotiation completed.
2326         /// Event description ID=3354, Level=Verbose, Channel=Debug
2327         /// </summary>
2328         /// <param name="eventTraceActivity">The event trace activity</param>
ServiceSecurityNegotiationCompleted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2329         internal static void ServiceSecurityNegotiationCompleted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2330         {
2331             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2332             if (TD.IsEtwEventEnabled(94))
2333             {
2334                 TD.WriteEtwEvent(94, eventTraceActivity, payload.AppDomainFriendlyName);
2335             }
2336         }
2337 
2338         /// <summary>
2339         /// Check if trace definition is enabled
2340         /// Event description ID=3355, Level=Error, Channel=analytic
2341         /// </summary>
SecurityNegotiationProcessingFailureIsEnabled()2342         internal static bool SecurityNegotiationProcessingFailureIsEnabled()
2343         {
2344             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(95));
2345         }
2346 
2347         /// <summary>
2348         /// Gets trace definition like: Security negotiation processing failed.
2349         /// Event description ID=3355, Level=Error, Channel=analytic
2350         /// </summary>
2351         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityNegotiationProcessingFailure(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2352         internal static void SecurityNegotiationProcessingFailure(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2353         {
2354             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2355             if (TD.IsEtwEventEnabled(95))
2356             {
2357                 TD.WriteEtwEvent(95, eventTraceActivity, payload.AppDomainFriendlyName);
2358             }
2359         }
2360 
2361         /// <summary>
2362         /// Check if trace definition is enabled
2363         /// Event description ID=3356, Level=Verbose, Channel=Debug
2364         /// </summary>
SecurityIdentityVerificationSuccessIsEnabled()2365         internal static bool SecurityIdentityVerificationSuccessIsEnabled()
2366         {
2367             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(96));
2368         }
2369 
2370         /// <summary>
2371         /// Gets trace definition like: Security verification succeeded.
2372         /// Event description ID=3356, Level=Verbose, Channel=Debug
2373         /// </summary>
2374         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityIdentityVerificationSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2375         internal static void SecurityIdentityVerificationSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2376         {
2377             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2378             if (TD.IsEtwEventEnabled(96))
2379             {
2380                 TD.WriteEtwEvent(96, eventTraceActivity, payload.AppDomainFriendlyName);
2381             }
2382         }
2383 
2384         /// <summary>
2385         /// Check if trace definition is enabled
2386         /// Event description ID=3357, Level=Error, Channel=analytic
2387         /// </summary>
SecurityIdentityVerificationFailureIsEnabled()2388         internal static bool SecurityIdentityVerificationFailureIsEnabled()
2389         {
2390             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(97));
2391         }
2392 
2393         /// <summary>
2394         /// Gets trace definition like: Security verification failed.
2395         /// Event description ID=3357, Level=Error, Channel=analytic
2396         /// </summary>
2397         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityIdentityVerificationFailure(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2398         internal static void SecurityIdentityVerificationFailure(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2399         {
2400             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2401             if (TD.IsEtwEventEnabled(97))
2402             {
2403                 TD.WriteEtwEvent(97, eventTraceActivity, payload.AppDomainFriendlyName);
2404             }
2405         }
2406 
2407         /// <summary>
2408         /// Check if trace definition is enabled
2409         /// Event description ID=3358, Level=Verbose, Channel=Debug
2410         /// </summary>
PortSharingDuplicatedSocketIsEnabled()2411         internal static bool PortSharingDuplicatedSocketIsEnabled()
2412         {
2413             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(98));
2414         }
2415 
2416         /// <summary>
2417         /// Gets trace definition like: Socket duplicated for {0}.
2418         /// Event description ID=3358, Level=Verbose, Channel=Debug
2419         /// </summary>
2420         /// <param name="eventTraceActivity">The event trace activity</param>
2421         /// <param name="Uri">Parameter 0 for event: Socket duplicated for {0}.</param>
PortSharingDuplicatedSocket(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Uri)2422         internal static void PortSharingDuplicatedSocket(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string Uri)
2423         {
2424             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2425             if (TD.IsEtwEventEnabled(98))
2426             {
2427                 TD.WriteEtwEvent(98, eventTraceActivity, Uri, payload.AppDomainFriendlyName);
2428             }
2429         }
2430 
2431         /// <summary>
2432         /// Check if trace definition is enabled
2433         /// Event description ID=3359, Level=Verbose, Channel=Debug
2434         /// </summary>
SecurityImpersonationSuccessIsEnabled()2435         internal static bool SecurityImpersonationSuccessIsEnabled()
2436         {
2437             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(99));
2438         }
2439 
2440         /// <summary>
2441         /// Gets trace definition like: Security impersonation succeeded.
2442         /// Event description ID=3359, Level=Verbose, Channel=Debug
2443         /// </summary>
2444         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityImpersonationSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2445         internal static void SecurityImpersonationSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2446         {
2447             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2448             if (TD.IsEtwEventEnabled(99))
2449             {
2450                 TD.WriteEtwEvent(99, eventTraceActivity, payload.AppDomainFriendlyName);
2451             }
2452         }
2453 
2454         /// <summary>
2455         /// Check if trace definition is enabled
2456         /// Event description ID=3360, Level=Warning, Channel=analytic
2457         /// </summary>
SecurityImpersonationFailureIsEnabled()2458         internal static bool SecurityImpersonationFailureIsEnabled()
2459         {
2460             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(100));
2461         }
2462 
2463         /// <summary>
2464         /// Gets trace definition like: Security impersonation failed.
2465         /// Event description ID=3360, Level=Warning, Channel=analytic
2466         /// </summary>
2467         /// <param name="eventTraceActivity">The event trace activity</param>
SecurityImpersonationFailure(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2468         internal static void SecurityImpersonationFailure(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2469         {
2470             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2471             if (TD.IsEtwEventEnabled(100))
2472             {
2473                 TD.WriteEtwEvent(100, eventTraceActivity, payload.AppDomainFriendlyName);
2474             }
2475         }
2476 
2477         /// <summary>
2478         /// Check if trace definition is enabled
2479         /// Event description ID=3361, Level=Warning, Channel=analytic
2480         /// </summary>
HttpChannelRequestAbortedIsEnabled()2481         internal static bool HttpChannelRequestAbortedIsEnabled()
2482         {
2483             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(101));
2484         }
2485 
2486         /// <summary>
2487         /// Gets trace definition like: Http channel request aborted.
2488         /// Event description ID=3361, Level=Warning, Channel=analytic
2489         /// </summary>
2490         /// <param name="eventTraceActivity">The event trace activity</param>
HttpChannelRequestAborted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2491         internal static void HttpChannelRequestAborted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2492         {
2493             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2494             if (TD.IsEtwEventEnabled(101))
2495             {
2496                 TD.WriteEtwEvent(101, eventTraceActivity, payload.AppDomainFriendlyName);
2497             }
2498         }
2499 
2500         /// <summary>
2501         /// Check if trace definition is enabled
2502         /// Event description ID=3362, Level=Warning, Channel=analytic
2503         /// </summary>
HttpChannelResponseAbortedIsEnabled()2504         internal static bool HttpChannelResponseAbortedIsEnabled()
2505         {
2506             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(102));
2507         }
2508 
2509         /// <summary>
2510         /// Gets trace definition like: Http channel response aborted.
2511         /// Event description ID=3362, Level=Warning, Channel=analytic
2512         /// </summary>
2513         /// <param name="eventTraceActivity">The event trace activity</param>
HttpChannelResponseAborted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2514         internal static void HttpChannelResponseAborted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2515         {
2516             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2517             if (TD.IsEtwEventEnabled(102))
2518             {
2519                 TD.WriteEtwEvent(102, eventTraceActivity, payload.AppDomainFriendlyName);
2520             }
2521         }
2522 
2523         /// <summary>
2524         /// Check if trace definition is enabled
2525         /// Event description ID=3363, Level=Warning, Channel=analytic
2526         /// </summary>
HttpAuthFailedIsEnabled()2527         internal static bool HttpAuthFailedIsEnabled()
2528         {
2529             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(103));
2530         }
2531 
2532         /// <summary>
2533         /// Gets trace definition like: Http authentication failed.
2534         /// Event description ID=3363, Level=Warning, Channel=analytic
2535         /// </summary>
2536         /// <param name="eventTraceActivity">The event trace activity</param>
HttpAuthFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2537         internal static void HttpAuthFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2538         {
2539             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2540             if (TD.IsEtwEventEnabled(103))
2541             {
2542                 TD.WriteEtwEvent(103, eventTraceActivity, payload.AppDomainFriendlyName);
2543             }
2544         }
2545 
2546         /// <summary>
2547         /// Check if trace definition is enabled
2548         /// Event description ID=3364, Level=Verbose, Channel=Analytic
2549         /// </summary>
SharedListenerProxyRegisterStartIsEnabled()2550         internal static bool SharedListenerProxyRegisterStartIsEnabled()
2551         {
2552             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(104));
2553         }
2554 
2555         /// <summary>
2556         /// Gets trace definition like: SharedListenerProxy registration started for uri '{0}'.
2557         /// Event description ID=3364, Level=Verbose, Channel=Analytic
2558         /// </summary>
2559         /// <param name="Uri">Parameter 0 for event: SharedListenerProxy registration started for uri '{0}'.</param>
SharedListenerProxyRegisterStart(string Uri)2560         internal static void SharedListenerProxyRegisterStart(string Uri)
2561         {
2562             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2563             if (TD.IsEtwEventEnabled(104))
2564             {
2565                 TD.WriteEtwEvent(104, null, Uri, payload.AppDomainFriendlyName);
2566             }
2567         }
2568 
2569         /// <summary>
2570         /// Check if trace definition is enabled
2571         /// Event description ID=3365, Level=Verbose, Channel=Analytic
2572         /// </summary>
SharedListenerProxyRegisterStopIsEnabled()2573         internal static bool SharedListenerProxyRegisterStopIsEnabled()
2574         {
2575             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(105));
2576         }
2577 
2578         /// <summary>
2579         /// Gets trace definition like: SharedListenerProxy Register Stop.
2580         /// Event description ID=3365, Level=Verbose, Channel=Analytic
2581         /// </summary>
SharedListenerProxyRegisterStop()2582         internal static void SharedListenerProxyRegisterStop()
2583         {
2584             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2585             if (TD.IsEtwEventEnabled(105))
2586             {
2587                 TD.WriteEtwEvent(105, null, payload.AppDomainFriendlyName);
2588             }
2589         }
2590 
2591         /// <summary>
2592         /// Check if trace definition is enabled
2593         /// Event description ID=3366, Level=Error, Channel=Analytic
2594         /// </summary>
SharedListenerProxyRegisterFailedIsEnabled()2595         internal static bool SharedListenerProxyRegisterFailedIsEnabled()
2596         {
2597             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(106));
2598         }
2599 
2600         /// <summary>
2601         /// Gets trace definition like: SharedListenerProxy register failed with status '{0}'.
2602         /// Event description ID=3366, Level=Error, Channel=Analytic
2603         /// </summary>
2604         /// <param name="Status">Parameter 0 for event: SharedListenerProxy register failed with status '{0}'.</param>
SharedListenerProxyRegisterFailed(string Status)2605         internal static void SharedListenerProxyRegisterFailed(string Status)
2606         {
2607             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2608             if (TD.IsEtwEventEnabled(106))
2609             {
2610                 TD.WriteEtwEvent(106, null, Status, payload.AppDomainFriendlyName);
2611             }
2612         }
2613 
2614         /// <summary>
2615         /// Check if trace definition is enabled
2616         /// Event description ID=3367, Level=Error, Channel=Analytic
2617         /// </summary>
ConnectionPoolPreambleFailedIsEnabled()2618         internal static bool ConnectionPoolPreambleFailedIsEnabled()
2619         {
2620             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(107));
2621         }
2622 
2623         /// <summary>
2624         /// Gets trace definition like: ConnectionPoolPreambleFailed.
2625         /// Event description ID=3367, Level=Error, Channel=Analytic
2626         /// </summary>
2627         /// <param name="eventTraceActivity">The event trace activity</param>
ConnectionPoolPreambleFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2628         internal static void ConnectionPoolPreambleFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2629         {
2630             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2631             if (TD.IsEtwEventEnabled(107))
2632             {
2633                 TD.WriteEtwEvent(107, eventTraceActivity, payload.AppDomainFriendlyName);
2634             }
2635         }
2636 
2637         /// <summary>
2638         /// Check if trace definition is enabled
2639         /// Event description ID=3368, Level=Verbose, Channel=Analytic
2640         /// </summary>
SslOnInitiateUpgradeIsEnabled()2641         internal static bool SslOnInitiateUpgradeIsEnabled()
2642         {
2643             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(108));
2644         }
2645 
2646         /// <summary>
2647         /// Gets trace definition like: SslOnAcceptUpgradeStart
2648         /// Event description ID=3368, Level=Verbose, Channel=Analytic
2649         /// </summary>
SslOnInitiateUpgrade()2650         internal static void SslOnInitiateUpgrade()
2651         {
2652             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2653             if (TD.IsEtwEventEnabled(108))
2654             {
2655                 TD.WriteEtwEvent(108, null, payload.AppDomainFriendlyName);
2656             }
2657         }
2658 
2659         /// <summary>
2660         /// Check if trace definition is enabled
2661         /// Event description ID=3369, Level=Verbose, Channel=Analytic
2662         /// </summary>
SslOnAcceptUpgradeIsEnabled()2663         internal static bool SslOnAcceptUpgradeIsEnabled()
2664         {
2665             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(109));
2666         }
2667 
2668         /// <summary>
2669         /// Gets trace definition like: SslOnAcceptUpgradeStop
2670         /// Event description ID=3369, Level=Verbose, Channel=Analytic
2671         /// </summary>
2672         /// <param name="eventTraceActivity">The event trace activity</param>
SslOnAcceptUpgrade(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2673         internal static void SslOnAcceptUpgrade(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2674         {
2675             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2676             if (TD.IsEtwEventEnabled(109))
2677             {
2678                 TD.WriteEtwEvent(109, eventTraceActivity, payload.AppDomainFriendlyName);
2679             }
2680         }
2681 
2682         /// <summary>
2683         /// Check if trace definition is enabled
2684         /// Event description ID=3370, Level=verbose, Channel=Debug
2685         /// </summary>
BinaryMessageEncodingStartIsEnabled()2686         internal static bool BinaryMessageEncodingStartIsEnabled()
2687         {
2688             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(110));
2689         }
2690 
2691         /// <summary>
2692         /// Gets trace definition like: BinaryMessageEncoder started encoding the message.
2693         /// Event description ID=3370, Level=verbose, Channel=Debug
2694         /// </summary>
2695         /// <param name="eventTraceActivity">The event trace activity</param>
BinaryMessageEncodingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2696         internal static void BinaryMessageEncodingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2697         {
2698             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2699             if (TD.IsEtwEventEnabled(110))
2700             {
2701                 TD.WriteEtwEvent(110, eventTraceActivity, payload.AppDomainFriendlyName);
2702             }
2703         }
2704 
2705         /// <summary>
2706         /// Check if trace definition is enabled
2707         /// Event description ID=3371, Level=verbose, Channel=Debug
2708         /// </summary>
MtomMessageEncodingStartIsEnabled()2709         internal static bool MtomMessageEncodingStartIsEnabled()
2710         {
2711             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(111));
2712         }
2713 
2714         /// <summary>
2715         /// Gets trace definition like: MtomMessageEncoder started encoding the message.
2716         /// Event description ID=3371, Level=verbose, Channel=Debug
2717         /// </summary>
2718         /// <param name="eventTraceActivity">The event trace activity</param>
MtomMessageEncodingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2719         internal static void MtomMessageEncodingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2720         {
2721             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2722             if (TD.IsEtwEventEnabled(111))
2723             {
2724                 TD.WriteEtwEvent(111, eventTraceActivity, payload.AppDomainFriendlyName);
2725             }
2726         }
2727 
2728         /// <summary>
2729         /// Check if trace definition is enabled
2730         /// Event description ID=3372, Level=verbose, Channel=Debug
2731         /// </summary>
TextMessageEncodingStartIsEnabled()2732         internal static bool TextMessageEncodingStartIsEnabled()
2733         {
2734             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(112));
2735         }
2736 
2737         /// <summary>
2738         /// Gets trace definition like: TextMessageEncoder started encoding the message.
2739         /// Event description ID=3372, Level=verbose, Channel=Debug
2740         /// </summary>
2741         /// <param name="eventTraceActivity">The event trace activity</param>
TextMessageEncodingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2742         internal static void TextMessageEncodingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2743         {
2744             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2745             if (TD.IsEtwEventEnabled(112))
2746             {
2747                 TD.WriteEtwEvent(112, eventTraceActivity, payload.AppDomainFriendlyName);
2748             }
2749         }
2750 
2751         /// <summary>
2752         /// Check if trace definition is enabled
2753         /// Event description ID=3373, Level=verbose, Channel=Debug
2754         /// </summary>
BinaryMessageDecodingStartIsEnabled()2755         internal static bool BinaryMessageDecodingStartIsEnabled()
2756         {
2757             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(113));
2758         }
2759 
2760         /// <summary>
2761         /// Gets trace definition like: BinaryMessageEncoder started decoding the message.
2762         /// Event description ID=3373, Level=verbose, Channel=Debug
2763         /// </summary>
BinaryMessageDecodingStart()2764         internal static void BinaryMessageDecodingStart()
2765         {
2766             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2767             if (TD.IsEtwEventEnabled(113))
2768             {
2769                 TD.WriteEtwEvent(113, null, payload.AppDomainFriendlyName);
2770             }
2771         }
2772 
2773         /// <summary>
2774         /// Check if trace definition is enabled
2775         /// Event description ID=3374, Level=verbose, Channel=Debug
2776         /// </summary>
MtomMessageDecodingStartIsEnabled()2777         internal static bool MtomMessageDecodingStartIsEnabled()
2778         {
2779             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(114));
2780         }
2781 
2782         /// <summary>
2783         /// Gets trace definition like: MtomMessageEncoder started decoding  the message.
2784         /// Event description ID=3374, Level=verbose, Channel=Debug
2785         /// </summary>
MtomMessageDecodingStart()2786         internal static void MtomMessageDecodingStart()
2787         {
2788             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2789             if (TD.IsEtwEventEnabled(114))
2790             {
2791                 TD.WriteEtwEvent(114, null, payload.AppDomainFriendlyName);
2792             }
2793         }
2794 
2795         /// <summary>
2796         /// Check if trace definition is enabled
2797         /// Event description ID=3375, Level=verbose, Channel=Debug
2798         /// </summary>
TextMessageDecodingStartIsEnabled()2799         internal static bool TextMessageDecodingStartIsEnabled()
2800         {
2801             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(115));
2802         }
2803 
2804         /// <summary>
2805         /// Gets trace definition like: TextMessageEncoder started decoding the message.
2806         /// Event description ID=3375, Level=verbose, Channel=Debug
2807         /// </summary>
TextMessageDecodingStart()2808         internal static void TextMessageDecodingStart()
2809         {
2810             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2811             if (TD.IsEtwEventEnabled(115))
2812             {
2813                 TD.WriteEtwEvent(115, null, payload.AppDomainFriendlyName);
2814             }
2815         }
2816 
2817         /// <summary>
2818         /// Check if trace definition is enabled
2819         /// Event description ID=3376, Level=informational, Channel=Debug
2820         /// </summary>
HttpResponseReceiveStartIsEnabled()2821         internal static bool HttpResponseReceiveStartIsEnabled()
2822         {
2823             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(116));
2824         }
2825 
2826         /// <summary>
2827         /// Gets trace definition like: Http transport started receiving a message.
2828         /// Event description ID=3376, Level=informational, Channel=Debug
2829         /// </summary>
2830         /// <param name="eventTraceActivity">The event trace activity</param>
HttpResponseReceiveStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)2831         internal static void HttpResponseReceiveStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
2832         {
2833             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2834             if (TD.IsEtwEventEnabled(116))
2835             {
2836                 TD.WriteEtwEvent(116, eventTraceActivity, payload.AppDomainFriendlyName);
2837             }
2838         }
2839 
2840         /// <summary>
2841         /// Check if trace definition is enabled
2842         /// Event description ID=3377, Level=Verbose, Channel=Debug
2843         /// </summary>
SocketReadStopIsEnabled()2844         internal static bool SocketReadStopIsEnabled()
2845         {
2846             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(117));
2847         }
2848 
2849         /// <summary>
2850         /// Gets trace definition like: SocketId:{0} read '{1}' bytes read from '{2}'.
2851         /// Event description ID=3377, Level=Verbose, Channel=Debug
2852         /// </summary>
2853         /// <param name="SocketId">Parameter 0 for event: SocketId:{0} read '{1}' bytes read from '{2}'.</param>
2854         /// <param name="Size">Parameter 1 for event: SocketId:{0} read '{1}' bytes read from '{2}'.</param>
2855         /// <param name="Endpoint">Parameter 2 for event: SocketId:{0} read '{1}' bytes read from '{2}'.</param>
SocketReadStop(int SocketId, int Size, string Endpoint)2856         internal static void SocketReadStop(int SocketId, int Size, string Endpoint)
2857         {
2858             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2859             if (TD.IsEtwEventEnabled(117))
2860             {
2861                 TD.WriteEtwEvent(117, null, SocketId, Size, Endpoint, payload.AppDomainFriendlyName);
2862             }
2863         }
2864 
2865         /// <summary>
2866         /// Check if trace definition is enabled
2867         /// Event description ID=3378, Level=Verbose, Channel=Debug
2868         /// </summary>
SocketAsyncReadStopIsEnabled()2869         internal static bool SocketAsyncReadStopIsEnabled()
2870         {
2871             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(118));
2872         }
2873 
2874         /// <summary>
2875         /// Gets trace definition like: SocketId:{0} read '{1}' bytes read from '{2}'.
2876         /// Event description ID=3378, Level=Verbose, Channel=Debug
2877         /// </summary>
2878         /// <param name="SocketId">Parameter 0 for event: SocketId:{0} read '{1}' bytes read from '{2}'.</param>
2879         /// <param name="Size">Parameter 1 for event: SocketId:{0} read '{1}' bytes read from '{2}'.</param>
2880         /// <param name="Endpoint">Parameter 2 for event: SocketId:{0} read '{1}' bytes read from '{2}'.</param>
SocketAsyncReadStop(int SocketId, int Size, string Endpoint)2881         internal static void SocketAsyncReadStop(int SocketId, int Size, string Endpoint)
2882         {
2883             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2884             if (TD.IsEtwEventEnabled(118))
2885             {
2886                 TD.WriteEtwEvent(118, null, SocketId, Size, Endpoint, payload.AppDomainFriendlyName);
2887             }
2888         }
2889 
2890         /// <summary>
2891         /// Check if trace definition is enabled
2892         /// Event description ID=3379, Level=Verbose, Channel=Debug
2893         /// </summary>
SocketWriteStartIsEnabled()2894         internal static bool SocketWriteStartIsEnabled()
2895         {
2896             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(119));
2897         }
2898 
2899         /// <summary>
2900         /// Gets trace definition like: SocketId:{0} writing '{1}' bytes to '{2}'.
2901         /// Event description ID=3379, Level=Verbose, Channel=Debug
2902         /// </summary>
2903         /// <param name="SocketId">Parameter 0 for event: SocketId:{0} writing '{1}' bytes to '{2}'.</param>
2904         /// <param name="Size">Parameter 1 for event: SocketId:{0} writing '{1}' bytes to '{2}'.</param>
2905         /// <param name="Endpoint">Parameter 2 for event: SocketId:{0} writing '{1}' bytes to '{2}'.</param>
SocketWriteStart(int SocketId, int Size, string Endpoint)2906         internal static void SocketWriteStart(int SocketId, int Size, string Endpoint)
2907         {
2908             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2909             if (TD.IsEtwEventEnabled(119))
2910             {
2911                 TD.WriteEtwEvent(119, null, SocketId, Size, Endpoint, payload.AppDomainFriendlyName);
2912             }
2913         }
2914 
2915         /// <summary>
2916         /// Check if trace definition is enabled
2917         /// Event description ID=3380, Level=Verbose, Channel=Debug
2918         /// </summary>
SocketAsyncWriteStartIsEnabled()2919         internal static bool SocketAsyncWriteStartIsEnabled()
2920         {
2921             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(120));
2922         }
2923 
2924         /// <summary>
2925         /// Gets trace definition like: SocketId:{0} writing '{1}' bytes to '{2}'.
2926         /// Event description ID=3380, Level=Verbose, Channel=Debug
2927         /// </summary>
2928         /// <param name="SocketId">Parameter 0 for event: SocketId:{0} writing '{1}' bytes to '{2}'.</param>
2929         /// <param name="Size">Parameter 1 for event: SocketId:{0} writing '{1}' bytes to '{2}'.</param>
2930         /// <param name="Endpoint">Parameter 2 for event: SocketId:{0} writing '{1}' bytes to '{2}'.</param>
SocketAsyncWriteStart(int SocketId, int Size, string Endpoint)2931         internal static void SocketAsyncWriteStart(int SocketId, int Size, string Endpoint)
2932         {
2933             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2934             if (TD.IsEtwEventEnabled(120))
2935             {
2936                 TD.WriteEtwEvent(120, null, SocketId, Size, Endpoint, payload.AppDomainFriendlyName);
2937             }
2938         }
2939 
2940         /// <summary>
2941         /// Check if trace definition is enabled
2942         /// Event description ID=3381, Level=Verbose, Channel=Debug
2943         /// </summary>
SequenceAcknowledgementSentIsEnabled()2944         internal static bool SequenceAcknowledgementSentIsEnabled()
2945         {
2946             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(121));
2947         }
2948 
2949         /// <summary>
2950         /// Gets trace definition like: SessionId:{0} acknowledgement sent.
2951         /// Event description ID=3381, Level=Verbose, Channel=Debug
2952         /// </summary>
2953         /// <param name="SessionId">Parameter 0 for event: SessionId:{0} acknowledgement sent.</param>
SequenceAcknowledgementSent(string SessionId)2954         internal static void SequenceAcknowledgementSent(string SessionId)
2955         {
2956             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2957             if (TD.IsEtwEventEnabled(121))
2958             {
2959                 TD.WriteEtwEvent(121, null, SessionId, payload.AppDomainFriendlyName);
2960             }
2961         }
2962 
2963         /// <summary>
2964         /// Check if trace definition is enabled
2965         /// Event description ID=3382, Level=Informational, Channel=Debug
2966         /// </summary>
ClientReliableSessionReconnectIsEnabled()2967         internal static bool ClientReliableSessionReconnectIsEnabled()
2968         {
2969             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(122));
2970         }
2971 
2972         /// <summary>
2973         /// Gets trace definition like: SessionId:{0} reconnecting.
2974         /// Event description ID=3382, Level=Informational, Channel=Debug
2975         /// </summary>
2976         /// <param name="SessionId">Parameter 0 for event: SessionId:{0} reconnecting.</param>
ClientReliableSessionReconnect(string SessionId)2977         internal static void ClientReliableSessionReconnect(string SessionId)
2978         {
2979             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
2980             if (TD.IsEtwEventEnabled(122))
2981             {
2982                 TD.WriteEtwEvent(122, null, SessionId, payload.AppDomainFriendlyName);
2983             }
2984         }
2985 
2986         /// <summary>
2987         /// Check if trace definition is enabled
2988         /// Event description ID=3383, Level=Informational, Channel=Debug
2989         /// </summary>
ReliableSessionChannelFaultedIsEnabled()2990         internal static bool ReliableSessionChannelFaultedIsEnabled()
2991         {
2992             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(123));
2993         }
2994 
2995         /// <summary>
2996         /// Gets trace definition like: SessionId:{0} faulted.
2997         /// Event description ID=3383, Level=Informational, Channel=Debug
2998         /// </summary>
2999         /// <param name="SessionId">Parameter 0 for event: SessionId:{0} faulted.</param>
ReliableSessionChannelFaulted(string SessionId)3000         internal static void ReliableSessionChannelFaulted(string SessionId)
3001         {
3002             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3003             if (TD.IsEtwEventEnabled(123))
3004             {
3005                 TD.WriteEtwEvent(123, null, SessionId, payload.AppDomainFriendlyName);
3006             }
3007         }
3008 
3009         /// <summary>
3010         /// Check if trace definition is enabled
3011         /// Event description ID=3384, Level=Verbose, Channel=Analytic
3012         /// </summary>
WindowsStreamSecurityOnInitiateUpgradeIsEnabled()3013         internal static bool WindowsStreamSecurityOnInitiateUpgradeIsEnabled()
3014         {
3015             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(124));
3016         }
3017 
3018         /// <summary>
3019         /// Gets trace definition like: WindowsStreamSecurity initiating security upgrade.
3020         /// Event description ID=3384, Level=Verbose, Channel=Analytic
3021         /// </summary>
WindowsStreamSecurityOnInitiateUpgrade()3022         internal static void WindowsStreamSecurityOnInitiateUpgrade()
3023         {
3024             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3025             if (TD.IsEtwEventEnabled(124))
3026             {
3027                 TD.WriteEtwEvent(124, null, payload.AppDomainFriendlyName);
3028             }
3029         }
3030 
3031         /// <summary>
3032         /// Check if trace definition is enabled
3033         /// Event description ID=3385, Level=Verbose, Channel=Analytic
3034         /// </summary>
WindowsStreamSecurityOnAcceptUpgradeIsEnabled()3035         internal static bool WindowsStreamSecurityOnAcceptUpgradeIsEnabled()
3036         {
3037             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(125));
3038         }
3039 
3040         /// <summary>
3041         /// Gets trace definition like: Windows streaming security on accepting upgrade.
3042         /// Event description ID=3385, Level=Verbose, Channel=Analytic
3043         /// </summary>
3044         /// <param name="eventTraceActivity">The event trace activity</param>
WindowsStreamSecurityOnAcceptUpgrade(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3045         internal static void WindowsStreamSecurityOnAcceptUpgrade(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3046         {
3047             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3048             if (TD.IsEtwEventEnabled(125))
3049             {
3050                 TD.WriteEtwEvent(125, eventTraceActivity, payload.AppDomainFriendlyName);
3051             }
3052         }
3053 
3054         /// <summary>
3055         /// Check if trace definition is enabled
3056         /// Event description ID=3386, Level=Warning, Channel=analytic
3057         /// </summary>
SocketConnectionAbortIsEnabled()3058         internal static bool SocketConnectionAbortIsEnabled()
3059         {
3060             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(126));
3061         }
3062 
3063         /// <summary>
3064         /// Gets trace definition like: SocketId:{0} is aborting.
3065         /// Event description ID=3386, Level=Warning, Channel=analytic
3066         /// </summary>
3067         /// <param name="SocketId">Parameter 0 for event: SocketId:{0} is aborting.</param>
SocketConnectionAbort(int SocketId)3068         internal static void SocketConnectionAbort(int SocketId)
3069         {
3070             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3071             if (TD.IsEtwEventEnabled(126))
3072             {
3073                 TD.WriteEtwEvent(126, null, SocketId, payload.AppDomainFriendlyName);
3074             }
3075         }
3076 
3077         /// <summary>
3078         /// Check if trace definition is enabled
3079         /// Event description ID=3388, Level=Verbose, Channel=Analytic
3080         /// </summary>
HttpGetContextStartIsEnabled()3081         internal static bool HttpGetContextStartIsEnabled()
3082         {
3083             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(127));
3084         }
3085 
3086         /// <summary>
3087         /// Gets trace definition like: HttpGetContext start.
3088         /// Event description ID=3388, Level=Verbose, Channel=Analytic
3089         /// </summary>
3090         /// <param name="eventTraceActivity">The event trace activity</param>
HttpGetContextStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3091         internal static void HttpGetContextStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3092         {
3093             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3094             if (TD.IsEtwEventEnabled(127))
3095             {
3096                 TD.WriteEtwEvent(127, eventTraceActivity, payload.AppDomainFriendlyName);
3097             }
3098         }
3099 
3100         /// <summary>
3101         /// Check if trace definition is enabled
3102         /// Event description ID=3389, Level=Verbose, Channel=Debug
3103         /// </summary>
ClientSendPreambleStartIsEnabled()3104         internal static bool ClientSendPreambleStartIsEnabled()
3105         {
3106             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(128));
3107         }
3108 
3109         /// <summary>
3110         /// Gets trace definition like: Client sending preamble start.
3111         /// Event description ID=3389, Level=Verbose, Channel=Debug
3112         /// </summary>
3113         /// <param name="eventTraceActivity">The event trace activity</param>
ClientSendPreambleStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3114         internal static void ClientSendPreambleStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3115         {
3116             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3117             if (TD.IsEtwEventEnabled(128))
3118             {
3119                 TD.WriteEtwEvent(128, eventTraceActivity, payload.AppDomainFriendlyName);
3120             }
3121         }
3122 
3123         /// <summary>
3124         /// Check if trace definition is enabled
3125         /// Event description ID=3390, Level=Verbose, Channel=Debug
3126         /// </summary>
ClientSendPreambleStopIsEnabled()3127         internal static bool ClientSendPreambleStopIsEnabled()
3128         {
3129             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(129));
3130         }
3131 
3132         /// <summary>
3133         /// Gets trace definition like: Client sending preamble stop.
3134         /// Event description ID=3390, Level=Verbose, Channel=Debug
3135         /// </summary>
3136         /// <param name="eventTraceActivity">The event trace activity</param>
ClientSendPreambleStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3137         internal static void ClientSendPreambleStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3138         {
3139             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3140             if (TD.IsEtwEventEnabled(129))
3141             {
3142                 TD.WriteEtwEvent(129, eventTraceActivity, payload.AppDomainFriendlyName);
3143             }
3144         }
3145 
3146         /// <summary>
3147         /// Check if trace definition is enabled
3148         /// Event description ID=3391, Level=Warning, Channel=Analytic
3149         /// </summary>
HttpMessageReceiveFailedIsEnabled()3150         internal static bool HttpMessageReceiveFailedIsEnabled()
3151         {
3152             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(130));
3153         }
3154 
3155         /// <summary>
3156         /// Gets trace definition like: Http Message receive failed.
3157         /// Event description ID=3391, Level=Warning, Channel=Analytic
3158         /// </summary>
HttpMessageReceiveFailed()3159         internal static void HttpMessageReceiveFailed()
3160         {
3161             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3162             if (TD.IsEtwEventEnabled(130))
3163             {
3164                 TD.WriteEtwEvent(130, null, payload.AppDomainFriendlyName);
3165             }
3166         }
3167 
3168         /// <summary>
3169         /// Check if trace definition is enabled
3170         /// Event description ID=3392, Level=Informational, Channel=Debug
3171         /// </summary>
TransactionScopeCreateIsEnabled()3172         internal static bool TransactionScopeCreateIsEnabled()
3173         {
3174             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(131));
3175         }
3176 
3177         /// <summary>
3178         /// Gets trace definition like: TransactionScope is being created with LocalIdentifier:'{0}' and DistributedIdentifier:'{1}'.
3179         /// Event description ID=3392, Level=Informational, Channel=Debug
3180         /// </summary>
3181         /// <param name="eventTraceActivity">The event trace activity</param>
3182         /// <param name="LocalId">Parameter 0 for event: TransactionScope is being created with LocalIdentifier:'{0}' and DistributedIdentifier:'{1}'.</param>
3183         /// <param name="Distributed">Parameter 1 for event: TransactionScope is being created with LocalIdentifier:'{0}' and DistributedIdentifier:'{1}'.</param>
TransactionScopeCreate(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string LocalId, System.Guid Distributed)3184         internal static void TransactionScopeCreate(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string LocalId, System.Guid Distributed)
3185         {
3186             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3187             if (TD.IsEtwEventEnabled(131))
3188             {
3189                 TD.WriteEtwEvent(131, eventTraceActivity, LocalId, Distributed, payload.AppDomainFriendlyName);
3190             }
3191         }
3192 
3193         /// <summary>
3194         /// Check if trace definition is enabled
3195         /// Event description ID=3393, Level=informational, Channel=Debug
3196         /// </summary>
StreamedMessageReadByEncoderIsEnabled()3197         internal static bool StreamedMessageReadByEncoderIsEnabled()
3198         {
3199             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(132));
3200         }
3201 
3202         /// <summary>
3203         /// Gets trace definition like: A streamed message was read by the encoder.
3204         /// Event description ID=3393, Level=informational, Channel=Debug
3205         /// </summary>
3206         /// <param name="eventTraceActivity">The event trace activity</param>
StreamedMessageReadByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3207         internal static void StreamedMessageReadByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3208         {
3209             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3210             if (TD.IsEtwEventEnabled(132))
3211             {
3212                 TD.WriteEtwEvent(132, eventTraceActivity, payload.AppDomainFriendlyName);
3213             }
3214         }
3215 
3216         /// <summary>
3217         /// Check if trace definition is enabled
3218         /// Event description ID=3394, Level=informational, Channel=Debug
3219         /// </summary>
StreamedMessageWrittenByEncoderIsEnabled()3220         internal static bool StreamedMessageWrittenByEncoderIsEnabled()
3221         {
3222             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(133));
3223         }
3224 
3225         /// <summary>
3226         /// Gets trace definition like: A streamed message was written by the encoder.
3227         /// Event description ID=3394, Level=informational, Channel=Debug
3228         /// </summary>
3229         /// <param name="eventTraceActivity">The event trace activity</param>
StreamedMessageWrittenByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3230         internal static void StreamedMessageWrittenByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3231         {
3232             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3233             if (TD.IsEtwEventEnabled(133))
3234             {
3235                 TD.WriteEtwEvent(133, eventTraceActivity, payload.AppDomainFriendlyName);
3236             }
3237         }
3238 
3239         /// <summary>
3240         /// Check if trace definition is enabled
3241         /// Event description ID=3395, Level=informational, Channel=Debug
3242         /// </summary>
MessageWrittenAsynchronouslyByEncoderIsEnabled()3243         internal static bool MessageWrittenAsynchronouslyByEncoderIsEnabled()
3244         {
3245             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(134));
3246         }
3247 
3248         /// <summary>
3249         /// Gets trace definition like: A message was written asynchronously by the encoder.
3250         /// Event description ID=3395, Level=informational, Channel=Debug
3251         /// </summary>
3252         /// <param name="eventTraceActivity">The event trace activity</param>
MessageWrittenAsynchronouslyByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3253         internal static void MessageWrittenAsynchronouslyByEncoder(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3254         {
3255             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3256             if (TD.IsEtwEventEnabled(134))
3257             {
3258                 TD.WriteEtwEvent(134, eventTraceActivity, payload.AppDomainFriendlyName);
3259             }
3260         }
3261 
3262         /// <summary>
3263         /// Check if trace definition is enabled
3264         /// Event description ID=3396, Level=informational, Channel=Debug
3265         /// </summary>
BufferedAsyncWriteStartIsEnabled()3266         internal static bool BufferedAsyncWriteStartIsEnabled()
3267         {
3268             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(135));
3269         }
3270 
3271         /// <summary>
3272         /// Gets trace definition like: BufferId:{0} completed writing '{1}' bytes to underlying stream.
3273         /// Event description ID=3396, Level=informational, Channel=Debug
3274         /// </summary>
3275         /// <param name="eventTraceActivity">The event trace activity</param>
3276         /// <param name="BufferId">Parameter 0 for event: BufferId:{0} completed writing '{1}' bytes to underlying stream.</param>
3277         /// <param name="Size">Parameter 1 for event: BufferId:{0} completed writing '{1}' bytes to underlying stream.</param>
BufferedAsyncWriteStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int BufferId, int Size)3278         internal static void BufferedAsyncWriteStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int BufferId, int Size)
3279         {
3280             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3281             if (TD.IsEtwEventEnabled(135))
3282             {
3283                 TD.WriteEtwEvent(135, eventTraceActivity, BufferId, Size, payload.AppDomainFriendlyName);
3284             }
3285         }
3286 
3287         /// <summary>
3288         /// Check if trace definition is enabled
3289         /// Event description ID=3397, Level=informational, Channel=Debug
3290         /// </summary>
BufferedAsyncWriteStopIsEnabled()3291         internal static bool BufferedAsyncWriteStopIsEnabled()
3292         {
3293             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(136));
3294         }
3295 
3296         /// <summary>
3297         /// Gets trace definition like: A message was written asynchronously by the encoder.
3298         /// Event description ID=3397, Level=informational, Channel=Debug
3299         /// </summary>
3300         /// <param name="eventTraceActivity">The event trace activity</param>
BufferedAsyncWriteStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3301         internal static void BufferedAsyncWriteStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
3302         {
3303             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3304             if (TD.IsEtwEventEnabled(136))
3305             {
3306                 TD.WriteEtwEvent(136, eventTraceActivity, payload.AppDomainFriendlyName);
3307             }
3308         }
3309 
3310         /// <summary>
3311         /// Check if trace definition is enabled
3312         /// Event description ID=1400, Level=error, Channel=analytic
3313         /// </summary>
ChannelInitializationTimeoutIsEnabled()3314         internal static bool ChannelInitializationTimeoutIsEnabled()
3315         {
3316             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(137));
3317         }
3318 
3319         /// <summary>
3320         /// Gets trace definition like: {0}
3321         /// Event description ID=1400, Level=error, Channel=analytic
3322         /// </summary>
3323         /// <param name="param0">Parameter 0 for event: {0}</param>
ChannelInitializationTimeout(string param0)3324         internal static void ChannelInitializationTimeout(string param0)
3325         {
3326             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3327             if (TD.IsEtwEventEnabled(137))
3328             {
3329                 TD.WriteEtwEvent(137, null, param0, payload.AppDomainFriendlyName);
3330             }
3331         }
3332 
3333         /// <summary>
3334         /// Check if trace definition is enabled
3335         /// Event description ID=1401, Level=error, Channel=analytic
3336         /// </summary>
CloseTimeoutIsEnabled()3337         internal static bool CloseTimeoutIsEnabled()
3338         {
3339             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(138));
3340         }
3341 
3342         /// <summary>
3343         /// Gets trace definition like: {0}
3344         /// Event description ID=1401, Level=error, Channel=analytic
3345         /// </summary>
3346         /// <param name="param0">Parameter 0 for event: {0}</param>
CloseTimeout(string param0)3347         internal static void CloseTimeout(string param0)
3348         {
3349             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3350             if (TD.IsEtwEventEnabled(138))
3351             {
3352                 TD.WriteEtwEvent(138, null, param0, payload.AppDomainFriendlyName);
3353             }
3354         }
3355 
3356         /// <summary>
3357         /// Check if trace definition is enabled
3358         /// Event description ID=1402, Level=error, Channel=analytic
3359         /// </summary>
IdleTimeoutIsEnabled()3360         internal static bool IdleTimeoutIsEnabled()
3361         {
3362             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(139));
3363         }
3364 
3365         /// <summary>
3366         /// Gets trace definition like: {0} Connection pool key: {1}
3367         /// Event description ID=1402, Level=error, Channel=analytic
3368         /// </summary>
3369         /// <param name="msg">Parameter 0 for event: {0} Connection pool key: {1}</param>
3370         /// <param name="key">Parameter 1 for event: {0} Connection pool key: {1}</param>
IdleTimeout(string msg, string key)3371         internal static void IdleTimeout(string msg, string key)
3372         {
3373             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3374             if (TD.IsEtwEventEnabled(139))
3375             {
3376                 TD.WriteEtwEvent(139, null, msg, key, payload.AppDomainFriendlyName);
3377             }
3378         }
3379 
3380         /// <summary>
3381         /// Check if trace definition is enabled
3382         /// Event description ID=1403, Level=informational, Channel=analytic
3383         /// </summary>
LeaseTimeoutIsEnabled()3384         internal static bool LeaseTimeoutIsEnabled()
3385         {
3386             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(140));
3387         }
3388 
3389         /// <summary>
3390         /// Gets trace definition like: {0} Connection pool key: {1}
3391         /// Event description ID=1403, Level=informational, Channel=analytic
3392         /// </summary>
3393         /// <param name="msg">Parameter 0 for event: {0} Connection pool key: {1}</param>
3394         /// <param name="key">Parameter 1 for event: {0} Connection pool key: {1}</param>
LeaseTimeout(string msg, string key)3395         internal static void LeaseTimeout(string msg, string key)
3396         {
3397             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3398             if (TD.IsEtwEventEnabled(140))
3399             {
3400                 TD.WriteEtwEvent(140, null, msg, key, payload.AppDomainFriendlyName);
3401             }
3402         }
3403 
3404         /// <summary>
3405         /// Check if trace definition is enabled
3406         /// Event description ID=1405, Level=error, Channel=analytic
3407         /// </summary>
OpenTimeoutIsEnabled()3408         internal static bool OpenTimeoutIsEnabled()
3409         {
3410             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(141));
3411         }
3412 
3413         /// <summary>
3414         /// Gets trace definition like: {0}
3415         /// Event description ID=1405, Level=error, Channel=analytic
3416         /// </summary>
3417         /// <param name="param0">Parameter 0 for event: {0}</param>
OpenTimeout(string param0)3418         internal static void OpenTimeout(string param0)
3419         {
3420             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3421             if (TD.IsEtwEventEnabled(141))
3422             {
3423                 TD.WriteEtwEvent(141, null, param0, payload.AppDomainFriendlyName);
3424             }
3425         }
3426 
3427         /// <summary>
3428         /// Check if trace definition is enabled
3429         /// Event description ID=1406, Level=error, Channel=analytic
3430         /// </summary>
ReceiveTimeoutIsEnabled()3431         internal static bool ReceiveTimeoutIsEnabled()
3432         {
3433             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(142));
3434         }
3435 
3436         /// <summary>
3437         /// Gets trace definition like: {0}
3438         /// Event description ID=1406, Level=error, Channel=analytic
3439         /// </summary>
3440         /// <param name="param0">Parameter 0 for event: {0}</param>
ReceiveTimeout(string param0)3441         internal static void ReceiveTimeout(string param0)
3442         {
3443             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3444             if (TD.IsEtwEventEnabled(142))
3445             {
3446                 TD.WriteEtwEvent(142, null, param0, payload.AppDomainFriendlyName);
3447             }
3448         }
3449 
3450         /// <summary>
3451         /// Check if trace definition is enabled
3452         /// Event description ID=1407, Level=error, Channel=analytic
3453         /// </summary>
SendTimeoutIsEnabled()3454         internal static bool SendTimeoutIsEnabled()
3455         {
3456             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(143));
3457         }
3458 
3459         /// <summary>
3460         /// Gets trace definition like: {0}
3461         /// Event description ID=1407, Level=error, Channel=analytic
3462         /// </summary>
3463         /// <param name="param0">Parameter 0 for event: {0}</param>
SendTimeout(string param0)3464         internal static void SendTimeout(string param0)
3465         {
3466             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3467             if (TD.IsEtwEventEnabled(143))
3468             {
3469                 TD.WriteEtwEvent(143, null, param0, payload.AppDomainFriendlyName);
3470             }
3471         }
3472 
3473         /// <summary>
3474         /// Check if trace definition is enabled
3475         /// Event description ID=1409, Level=informational, Channel=analytic
3476         /// </summary>
InactivityTimeoutIsEnabled()3477         internal static bool InactivityTimeoutIsEnabled()
3478         {
3479             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(144));
3480         }
3481 
3482         /// <summary>
3483         /// Gets trace definition like: {0}
3484         /// Event description ID=1409, Level=informational, Channel=analytic
3485         /// </summary>
3486         /// <param name="param0">Parameter 0 for event: {0}</param>
InactivityTimeout(string param0)3487         internal static void InactivityTimeout(string param0)
3488         {
3489             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3490             if (TD.IsEtwEventEnabled(144))
3491             {
3492                 TD.WriteEtwEvent(144, null, param0, payload.AppDomainFriendlyName);
3493             }
3494         }
3495 
3496         /// <summary>
3497         /// Check if trace definition is enabled
3498         /// Event description ID=1416, Level=error, Channel=analytic
3499         /// </summary>
MaxReceivedMessageSizeExceededIsEnabled()3500         internal static bool MaxReceivedMessageSizeExceededIsEnabled()
3501         {
3502             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(145));
3503         }
3504 
3505         /// <summary>
3506         /// Gets trace definition like: {0}
3507         /// Event description ID=1416, Level=error, Channel=analytic
3508         /// </summary>
3509         /// <param name="param0">Parameter 0 for event: {0}</param>
MaxReceivedMessageSizeExceeded(string param0)3510         internal static void MaxReceivedMessageSizeExceeded(string param0)
3511         {
3512             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3513             if (TD.IsEtwEventEnabled(145))
3514             {
3515                 TD.WriteEtwEvent(145, null, param0, payload.AppDomainFriendlyName);
3516             }
3517         }
3518 
3519         /// <summary>
3520         /// Check if trace definition is enabled
3521         /// Event description ID=1417, Level=error, Channel=analytic
3522         /// </summary>
MaxSentMessageSizeExceededIsEnabled()3523         internal static bool MaxSentMessageSizeExceededIsEnabled()
3524         {
3525             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(146));
3526         }
3527 
3528         /// <summary>
3529         /// Gets trace definition like: {0}
3530         /// Event description ID=1417, Level=error, Channel=analytic
3531         /// </summary>
3532         /// <param name="param0">Parameter 0 for event: {0}</param>
MaxSentMessageSizeExceeded(string param0)3533         internal static void MaxSentMessageSizeExceeded(string param0)
3534         {
3535             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3536             if (TD.IsEtwEventEnabled(146))
3537             {
3538                 TD.WriteEtwEvent(146, null, param0, payload.AppDomainFriendlyName);
3539             }
3540         }
3541 
3542         /// <summary>
3543         /// Check if trace definition is enabled
3544         /// Event description ID=1418, Level=informational, Channel=debug
3545         /// </summary>
MaxOutboundConnectionsPerEndpointExceededIsEnabled()3546         internal static bool MaxOutboundConnectionsPerEndpointExceededIsEnabled()
3547         {
3548             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(147));
3549         }
3550 
3551         /// <summary>
3552         /// Gets trace definition like: {0}
3553         /// Event description ID=1418, Level=informational, Channel=debug
3554         /// </summary>
3555         /// <param name="param0">Parameter 0 for event: {0}</param>
MaxOutboundConnectionsPerEndpointExceeded(string param0)3556         internal static void MaxOutboundConnectionsPerEndpointExceeded(string param0)
3557         {
3558             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3559             if (TD.IsEtwEventEnabled(147))
3560             {
3561                 TD.WriteEtwEvent(147, null, param0, payload.AppDomainFriendlyName);
3562             }
3563         }
3564 
3565         /// <summary>
3566         /// Check if trace definition is enabled
3567         /// Event description ID=1419, Level=informational, Channel=debug
3568         /// </summary>
MaxPendingConnectionsExceededIsEnabled()3569         internal static bool MaxPendingConnectionsExceededIsEnabled()
3570         {
3571             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(148));
3572         }
3573 
3574         /// <summary>
3575         /// Gets trace definition like: {0}
3576         /// Event description ID=1419, Level=informational, Channel=debug
3577         /// </summary>
3578         /// <param name="param0">Parameter 0 for event: {0}</param>
MaxPendingConnectionsExceeded(string param0)3579         internal static void MaxPendingConnectionsExceeded(string param0)
3580         {
3581             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3582             if (TD.IsEtwEventEnabled(148))
3583             {
3584                 TD.WriteEtwEvent(148, null, param0, payload.AppDomainFriendlyName);
3585             }
3586         }
3587 
3588         /// <summary>
3589         /// Check if trace definition is enabled
3590         /// Event description ID=1422, Level=error, Channel=analytic
3591         /// </summary>
NegotiateTokenAuthenticatorStateCacheExceededIsEnabled()3592         internal static bool NegotiateTokenAuthenticatorStateCacheExceededIsEnabled()
3593         {
3594             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(149));
3595         }
3596 
3597         /// <summary>
3598         /// Gets trace definition like: {0}
3599         /// Event description ID=1422, Level=error, Channel=analytic
3600         /// </summary>
3601         /// <param name="msg">Parameter 0 for event: {0}</param>
NegotiateTokenAuthenticatorStateCacheExceeded(string msg)3602         internal static void NegotiateTokenAuthenticatorStateCacheExceeded(string msg)
3603         {
3604             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3605             if (TD.IsEtwEventEnabled(149))
3606             {
3607                 TD.WriteEtwEvent(149, null, msg, payload.AppDomainFriendlyName);
3608             }
3609         }
3610 
3611         /// <summary>
3612         /// Check if trace definition is enabled
3613         /// Event description ID=1423, Level=verbose, Channel=debug
3614         /// </summary>
NegotiateTokenAuthenticatorStateCacheRatioIsEnabled()3615         internal static bool NegotiateTokenAuthenticatorStateCacheRatioIsEnabled()
3616         {
3617             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(150));
3618         }
3619 
3620         /// <summary>
3621         /// Gets trace definition like: Negotiate token authenticator state cache ratio: {0}/{1}
3622         /// Event description ID=1423, Level=verbose, Channel=debug
3623         /// </summary>
3624         /// <param name="cur">Parameter 0 for event: Negotiate token authenticator state cache ratio: {0}/{1}</param>
3625         /// <param name="max">Parameter 1 for event: Negotiate token authenticator state cache ratio: {0}/{1}</param>
NegotiateTokenAuthenticatorStateCacheRatio(int cur, int max)3626         internal static void NegotiateTokenAuthenticatorStateCacheRatio(int cur, int max)
3627         {
3628             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3629             if (TD.IsEtwEventEnabled(150))
3630             {
3631                 TD.WriteEtwEvent(150, null, cur, max, payload.AppDomainFriendlyName);
3632             }
3633         }
3634 
3635         /// <summary>
3636         /// Check if trace definition is enabled
3637         /// Event description ID=1424, Level=verbose, Channel=debug
3638         /// </summary>
SecuritySessionRatioIsEnabled()3639         internal static bool SecuritySessionRatioIsEnabled()
3640         {
3641             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(151));
3642         }
3643 
3644         /// <summary>
3645         /// Gets trace definition like: Security session ratio: {0}/{1}
3646         /// Event description ID=1424, Level=verbose, Channel=debug
3647         /// </summary>
3648         /// <param name="cur">Parameter 0 for event: Security session ratio: {0}/{1}</param>
3649         /// <param name="max">Parameter 1 for event: Security session ratio: {0}/{1}</param>
SecuritySessionRatio(int cur, int max)3650         internal static void SecuritySessionRatio(int cur, int max)
3651         {
3652             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3653             if (TD.IsEtwEventEnabled(151))
3654             {
3655                 TD.WriteEtwEvent(151, null, cur, max, payload.AppDomainFriendlyName);
3656             }
3657         }
3658 
3659         /// <summary>
3660         /// Check if trace definition is enabled
3661         /// Event description ID=1430, Level=verbose, Channel=analytic
3662         /// </summary>
PendingConnectionsRatioIsEnabled()3663         internal static bool PendingConnectionsRatioIsEnabled()
3664         {
3665             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(152));
3666         }
3667 
3668         /// <summary>
3669         /// Gets trace definition like: Pending connections ratio: {0}/{1}
3670         /// Event description ID=1430, Level=verbose, Channel=analytic
3671         /// </summary>
3672         /// <param name="cur">Parameter 0 for event: Pending connections ratio: {0}/{1}</param>
3673         /// <param name="max">Parameter 1 for event: Pending connections ratio: {0}/{1}</param>
PendingConnectionsRatio(int cur, int max)3674         internal static void PendingConnectionsRatio(int cur, int max)
3675         {
3676             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3677             if (TD.IsEtwEventEnabled(152))
3678             {
3679                 TD.WriteEtwEvent(152, null, cur, max, payload.AppDomainFriendlyName);
3680             }
3681         }
3682 
3683         /// <summary>
3684         /// Check if trace definition is enabled
3685         /// Event description ID=1433, Level=verbose, Channel=analytic
3686         /// </summary>
OutboundConnectionsPerEndpointRatioIsEnabled()3687         internal static bool OutboundConnectionsPerEndpointRatioIsEnabled()
3688         {
3689             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(153));
3690         }
3691 
3692         /// <summary>
3693         /// Gets trace definition like: Outbound connections per endpoint ratio: {0}/{1}
3694         /// Event description ID=1433, Level=verbose, Channel=analytic
3695         /// </summary>
3696         /// <param name="cur">Parameter 0 for event: Outbound connections per endpoint ratio: {0}/{1}</param>
3697         /// <param name="max">Parameter 1 for event: Outbound connections per endpoint ratio: {0}/{1}</param>
OutboundConnectionsPerEndpointRatio(int cur, int max)3698         internal static void OutboundConnectionsPerEndpointRatio(int cur, int max)
3699         {
3700             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3701             if (TD.IsEtwEventEnabled(153))
3702             {
3703                 TD.WriteEtwEvent(153, null, cur, max, payload.AppDomainFriendlyName);
3704             }
3705         }
3706 
3707         /// <summary>
3708         /// Check if trace definition is enabled
3709         /// Event description ID=1438, Level=verbose, Channel=analytic
3710         /// </summary>
ConcurrentInstancesRatioIsEnabled()3711         internal static bool ConcurrentInstancesRatioIsEnabled()
3712         {
3713             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(154));
3714         }
3715 
3716         /// <summary>
3717         /// Gets trace definition like: Concurrent instances ratio: {0}/{1}
3718         /// Event description ID=1438, Level=verbose, Channel=analytic
3719         /// </summary>
3720         /// <param name="cur">Parameter 0 for event: Concurrent instances ratio: {0}/{1}</param>
3721         /// <param name="max">Parameter 1 for event: Concurrent instances ratio: {0}/{1}</param>
ConcurrentInstancesRatio(int cur, int max)3722         internal static void ConcurrentInstancesRatio(int cur, int max)
3723         {
3724             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3725             if (TD.IsEtwEventEnabled(154))
3726             {
3727                 TD.WriteEtwEvent(154, null, cur, max, payload.AppDomainFriendlyName);
3728             }
3729         }
3730 
3731         /// <summary>
3732         /// Check if trace definition is enabled
3733         /// Event description ID=1432, Level=verbose, Channel=analytic
3734         /// </summary>
ConcurrentSessionsRatioIsEnabled()3735         internal static bool ConcurrentSessionsRatioIsEnabled()
3736         {
3737             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(155));
3738         }
3739 
3740         /// <summary>
3741         /// Gets trace definition like: Concurrent sessions ratio: {0}/{1}
3742         /// Event description ID=1432, Level=verbose, Channel=analytic
3743         /// </summary>
3744         /// <param name="cur">Parameter 0 for event: Concurrent sessions ratio: {0}/{1}</param>
3745         /// <param name="max">Parameter 1 for event: Concurrent sessions ratio: {0}/{1}</param>
ConcurrentSessionsRatio(int cur, int max)3746         internal static void ConcurrentSessionsRatio(int cur, int max)
3747         {
3748             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3749             if (TD.IsEtwEventEnabled(155))
3750             {
3751                 TD.WriteEtwEvent(155, null, cur, max, payload.AppDomainFriendlyName);
3752             }
3753         }
3754 
3755         /// <summary>
3756         /// Check if trace definition is enabled
3757         /// Event description ID=1431, Level=verbose, Channel=analytic
3758         /// </summary>
ConcurrentCallsRatioIsEnabled()3759         internal static bool ConcurrentCallsRatioIsEnabled()
3760         {
3761             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(156));
3762         }
3763 
3764         /// <summary>
3765         /// Gets trace definition like: Concurrent calls ratio: {0}/{1}
3766         /// Event description ID=1431, Level=verbose, Channel=analytic
3767         /// </summary>
3768         /// <param name="cur">Parameter 0 for event: Concurrent calls ratio: {0}/{1}</param>
3769         /// <param name="max">Parameter 1 for event: Concurrent calls ratio: {0}/{1}</param>
ConcurrentCallsRatio(int cur, int max)3770         internal static void ConcurrentCallsRatio(int cur, int max)
3771         {
3772             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3773             if (TD.IsEtwEventEnabled(156))
3774             {
3775                 TD.WriteEtwEvent(156, null, cur, max, payload.AppDomainFriendlyName);
3776             }
3777         }
3778 
3779         /// <summary>
3780         /// Check if trace definition is enabled
3781         /// Event description ID=1439, Level=informational, Channel=debug
3782         /// </summary>
PendingAcceptsAtZeroIsEnabled()3783         internal static bool PendingAcceptsAtZeroIsEnabled()
3784         {
3785             return (FxTrace.ShouldTraceInformation && TD.IsEtwEventEnabled(157));
3786         }
3787 
3788         /// <summary>
3789         /// Gets trace definition like: Zero pending accepts left
3790         /// Event description ID=1439, Level=informational, Channel=debug
3791         /// </summary>
PendingAcceptsAtZero()3792         internal static void PendingAcceptsAtZero()
3793         {
3794             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3795             if (TD.IsEtwEventEnabled(157))
3796             {
3797                 TD.WriteEtwEvent(157, null, payload.AppDomainFriendlyName);
3798             }
3799         }
3800 
3801         /// <summary>
3802         /// Check if trace definition is enabled
3803         /// Event description ID=1441, Level=warning, Channel=analytic
3804         /// </summary>
MaxSessionSizeReachedIsEnabled()3805         internal static bool MaxSessionSizeReachedIsEnabled()
3806         {
3807             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(158));
3808         }
3809 
3810         /// <summary>
3811         /// Gets trace definition like: {0}
3812         /// Event description ID=1441, Level=warning, Channel=analytic
3813         /// </summary>
3814         /// <param name="param0">Parameter 0 for event: {0}</param>
MaxSessionSizeReached(string param0)3815         internal static void MaxSessionSizeReached(string param0)
3816         {
3817             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3818             if (TD.IsEtwEventEnabled(158))
3819             {
3820                 TD.WriteEtwEvent(158, null, param0, payload.AppDomainFriendlyName);
3821             }
3822         }
3823 
3824         /// <summary>
3825         /// Check if trace definition is enabled
3826         /// Event description ID=1442, Level=warning, Channel=analytic
3827         /// </summary>
ReceiveRetryCountReachedIsEnabled()3828         internal static bool ReceiveRetryCountReachedIsEnabled()
3829         {
3830             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(159));
3831         }
3832 
3833         /// <summary>
3834         /// Gets trace definition like: Receive retry count reached on MSMQ message with id '{0}'
3835         /// Event description ID=1442, Level=warning, Channel=analytic
3836         /// </summary>
3837         /// <param name="param0">Parameter 0 for event: Receive retry count reached on MSMQ message with id '{0}'</param>
ReceiveRetryCountReached(string param0)3838         internal static void ReceiveRetryCountReached(string param0)
3839         {
3840             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3841             if (TD.IsEtwEventEnabled(159))
3842             {
3843                 TD.WriteEtwEvent(159, null, param0, payload.AppDomainFriendlyName);
3844             }
3845         }
3846 
3847         /// <summary>
3848         /// Check if trace definition is enabled
3849         /// Event description ID=1443, Level=error, Channel=analytic
3850         /// </summary>
MaxRetryCyclesExceededMsmqIsEnabled()3851         internal static bool MaxRetryCyclesExceededMsmqIsEnabled()
3852         {
3853             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(160));
3854         }
3855 
3856         /// <summary>
3857         /// Gets trace definition like: Max retry cycles exceeded on MSMQ message with id '{0}'
3858         /// Event description ID=1443, Level=error, Channel=analytic
3859         /// </summary>
3860         /// <param name="param0">Parameter 0 for event: Max retry cycles exceeded on MSMQ message with id '{0}'</param>
MaxRetryCyclesExceededMsmq(string param0)3861         internal static void MaxRetryCyclesExceededMsmq(string param0)
3862         {
3863             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3864             if (TD.IsEtwEventEnabled(160))
3865             {
3866                 TD.WriteEtwEvent(160, null, param0, payload.AppDomainFriendlyName);
3867             }
3868         }
3869 
3870         /// <summary>
3871         /// Check if trace definition is enabled
3872         /// Event description ID=1445, Level=verbose, Channel=analytic
3873         /// </summary>
ReadPoolMissIsEnabled()3874         internal static bool ReadPoolMissIsEnabled()
3875         {
3876             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(161));
3877         }
3878 
3879         /// <summary>
3880         /// Gets trace definition like: Created new '{0}'
3881         /// Event description ID=1445, Level=verbose, Channel=analytic
3882         /// </summary>
3883         /// <param name="itemTypeName">Parameter 0 for event: Created new '{0}'</param>
ReadPoolMiss(string itemTypeName)3884         internal static void ReadPoolMiss(string itemTypeName)
3885         {
3886             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3887             if (TD.IsEtwEventEnabled(161))
3888             {
3889                 TD.WriteEtwEvent(161, null, itemTypeName, payload.AppDomainFriendlyName);
3890             }
3891         }
3892 
3893         /// <summary>
3894         /// Check if trace definition is enabled
3895         /// Event description ID=1446, Level=verbose, Channel=analytic
3896         /// </summary>
WritePoolMissIsEnabled()3897         internal static bool WritePoolMissIsEnabled()
3898         {
3899             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(162));
3900         }
3901 
3902         /// <summary>
3903         /// Gets trace definition like: Created new '{0}'
3904         /// Event description ID=1446, Level=verbose, Channel=analytic
3905         /// </summary>
3906         /// <param name="itemTypeName">Parameter 0 for event: Created new '{0}'</param>
WritePoolMiss(string itemTypeName)3907         internal static void WritePoolMiss(string itemTypeName)
3908         {
3909             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3910             if (TD.IsEtwEventEnabled(162))
3911             {
3912                 TD.WriteEtwEvent(162, null, itemTypeName, payload.AppDomainFriendlyName);
3913             }
3914         }
3915 
3916         /// <summary>
3917         /// Check if trace definition is enabled
3918         /// Event description ID=1451, Level=error, Channel=analytic
3919         /// </summary>
MaxRetryCyclesExceededIsEnabled()3920         internal static bool MaxRetryCyclesExceededIsEnabled()
3921         {
3922             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(163));
3923         }
3924 
3925         /// <summary>
3926         /// Gets trace definition like: {0}
3927         /// Event description ID=1451, Level=error, Channel=analytic
3928         /// </summary>
3929         /// <param name="param0">Parameter 0 for event: {0}</param>
MaxRetryCyclesExceeded(string param0)3930         internal static void MaxRetryCyclesExceeded(string param0)
3931         {
3932             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3933             if (TD.IsEtwEventEnabled(163))
3934             {
3935                 TD.WriteEtwEvent(163, null, param0, payload.AppDomainFriendlyName);
3936             }
3937         }
3938 
3939         /// <summary>
3940         /// Check if trace definition is enabled
3941         /// Event description ID=3398, Level=Verbose, Channel=Debug
3942         /// </summary>
PipeSharedMemoryCreatedIsEnabled()3943         internal static bool PipeSharedMemoryCreatedIsEnabled()
3944         {
3945             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(164));
3946         }
3947 
3948         /// <summary>
3949         /// Gets trace definition like: Pipe shared memory created at '{0}' .
3950         /// Event description ID=3398, Level=Verbose, Channel=Debug
3951         /// </summary>
3952         /// <param name="sharedMemoryName">Parameter 0 for event: Pipe shared memory created at '{0}' .</param>
PipeSharedMemoryCreated(string sharedMemoryName)3953         internal static void PipeSharedMemoryCreated(string sharedMemoryName)
3954         {
3955             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3956             if (TD.IsEtwEventEnabled(164))
3957             {
3958                 TD.WriteEtwEvent(164, null, sharedMemoryName, payload.AppDomainFriendlyName);
3959             }
3960         }
3961 
3962         /// <summary>
3963         /// Check if trace definition is enabled
3964         /// Event description ID=3399, Level=Verbose, Channel=Debug
3965         /// </summary>
NamedPipeCreatedIsEnabled()3966         internal static bool NamedPipeCreatedIsEnabled()
3967         {
3968             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(165));
3969         }
3970 
3971         /// <summary>
3972         /// Gets trace definition like: NamedPipe '{0}' created.
3973         /// Event description ID=3399, Level=Verbose, Channel=Debug
3974         /// </summary>
3975         /// <param name="pipeName">Parameter 0 for event: NamedPipe '{0}' created.</param>
NamedPipeCreated(string pipeName)3976         internal static void NamedPipeCreated(string pipeName)
3977         {
3978             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
3979             if (TD.IsEtwEventEnabled(165))
3980             {
3981                 TD.WriteEtwEvent(165, null, pipeName, payload.AppDomainFriendlyName);
3982             }
3983         }
3984 
3985         /// <summary>
3986         /// Check if trace definition is enabled
3987         /// Event description ID=3405, Level=Verbose, Channel=Debug
3988         /// </summary>
EncryptedDataProcessingStartIsEnabled()3989         internal static bool EncryptedDataProcessingStartIsEnabled()
3990         {
3991             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(166));
3992         }
3993 
3994         /// <summary>
3995         /// Gets trace definition like: Encrypted data processing started.
3996         /// Event description ID=3405, Level=Verbose, Channel=Debug
3997         /// </summary>
3998         /// <param name="eventTraceActivity">The event trace activity</param>
EncryptedDataProcessingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)3999         internal static void EncryptedDataProcessingStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4000         {
4001             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4002             if (TD.IsEtwEventEnabled(166))
4003             {
4004                 TD.WriteEtwEvent(166, eventTraceActivity, payload.AppDomainFriendlyName);
4005             }
4006         }
4007 
4008         /// <summary>
4009         /// Check if trace definition is enabled
4010         /// Event description ID=3406, Level=Verbose, Channel=Debug
4011         /// </summary>
EncryptedDataProcessingSuccessIsEnabled()4012         internal static bool EncryptedDataProcessingSuccessIsEnabled()
4013         {
4014             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(167));
4015         }
4016 
4017         /// <summary>
4018         /// Gets trace definition like: Encrypted data processing succeeded.
4019         /// Event description ID=3406, Level=Verbose, Channel=Debug
4020         /// </summary>
4021         /// <param name="eventTraceActivity">The event trace activity</param>
EncryptedDataProcessingSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4022         internal static void EncryptedDataProcessingSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4023         {
4024             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4025             if (TD.IsEtwEventEnabled(167))
4026             {
4027                 TD.WriteEtwEvent(167, eventTraceActivity, payload.AppDomainFriendlyName);
4028             }
4029         }
4030 
4031         /// <summary>
4032         /// Check if trace definition is enabled
4033         /// Event description ID=3401, Level=Verbose, Channel=Debug
4034         /// </summary>
SignatureVerificationStartIsEnabled()4035         internal static bool SignatureVerificationStartIsEnabled()
4036         {
4037             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(168));
4038         }
4039 
4040         /// <summary>
4041         /// Gets trace definition like: Signature verification started.
4042         /// Event description ID=3401, Level=Verbose, Channel=Debug
4043         /// </summary>
4044         /// <param name="eventTraceActivity">The event trace activity</param>
SignatureVerificationStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4045         internal static void SignatureVerificationStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4046         {
4047             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4048             if (TD.IsEtwEventEnabled(168))
4049             {
4050                 TD.WriteEtwEvent(168, eventTraceActivity, payload.AppDomainFriendlyName);
4051             }
4052         }
4053 
4054         /// <summary>
4055         /// Check if trace definition is enabled
4056         /// Event description ID=3402, Level=Verbose, Channel=Debug
4057         /// </summary>
SignatureVerificationSuccessIsEnabled()4058         internal static bool SignatureVerificationSuccessIsEnabled()
4059         {
4060             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(169));
4061         }
4062 
4063         /// <summary>
4064         /// Gets trace definition like: Signature verification succeeded
4065         /// Event description ID=3402, Level=Verbose, Channel=Debug
4066         /// </summary>
4067         /// <param name="eventTraceActivity">The event trace activity</param>
SignatureVerificationSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4068         internal static void SignatureVerificationSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4069         {
4070             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4071             if (TD.IsEtwEventEnabled(169))
4072             {
4073                 TD.WriteEtwEvent(169, eventTraceActivity, payload.AppDomainFriendlyName);
4074             }
4075         }
4076 
4077         /// <summary>
4078         /// Check if trace definition is enabled
4079         /// Event description ID=3403, Level=Verbose, Channel=Debug
4080         /// </summary>
WrappedKeyDecryptionStartIsEnabled()4081         internal static bool WrappedKeyDecryptionStartIsEnabled()
4082         {
4083             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(170));
4084         }
4085 
4086         /// <summary>
4087         /// Gets trace definition like: Wrapped key decryption started.
4088         /// Event description ID=3403, Level=Verbose, Channel=Debug
4089         /// </summary>
4090         /// <param name="eventTraceActivity">The event trace activity</param>
WrappedKeyDecryptionStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4091         internal static void WrappedKeyDecryptionStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4092         {
4093             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4094             if (TD.IsEtwEventEnabled(170))
4095             {
4096                 TD.WriteEtwEvent(170, eventTraceActivity, payload.AppDomainFriendlyName);
4097             }
4098         }
4099 
4100         /// <summary>
4101         /// Check if trace definition is enabled
4102         /// Event description ID=3404, Level=Verbose, Channel=Debug
4103         /// </summary>
WrappedKeyDecryptionSuccessIsEnabled()4104         internal static bool WrappedKeyDecryptionSuccessIsEnabled()
4105         {
4106             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(171));
4107         }
4108 
4109         /// <summary>
4110         /// Gets trace definition like: Wrapped key decryption succeeded.
4111         /// Event description ID=3404, Level=Verbose, Channel=Debug
4112         /// </summary>
4113         /// <param name="eventTraceActivity">The event trace activity</param>
WrappedKeyDecryptionSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4114         internal static void WrappedKeyDecryptionSuccess(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4115         {
4116             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4117             if (TD.IsEtwEventEnabled(171))
4118             {
4119                 TD.WriteEtwEvent(171, eventTraceActivity, payload.AppDomainFriendlyName);
4120             }
4121         }
4122 
4123         /// <summary>
4124         /// Check if trace definition is enabled
4125         /// Event description ID=3407, Level=Verbose, Channel=Debug
4126         /// </summary>
HttpPipelineProcessInboundRequestStartIsEnabled()4127         internal static bool HttpPipelineProcessInboundRequestStartIsEnabled()
4128         {
4129             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(172));
4130         }
4131 
4132         /// <summary>
4133         /// Gets trace definition like: Http message handler started processing the inbound request.
4134         /// Event description ID=3407, Level=Verbose, Channel=Debug
4135         /// </summary>
4136         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineProcessInboundRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4137         internal static void HttpPipelineProcessInboundRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4138         {
4139             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4140             if (TD.IsEtwEventEnabled(172))
4141             {
4142                 TD.WriteEtwEvent(172, eventTraceActivity, payload.AppDomainFriendlyName);
4143             }
4144         }
4145 
4146         /// <summary>
4147         /// Check if trace definition is enabled
4148         /// Event description ID=3408, Level=Verbose, Channel=Debug
4149         /// </summary>
HttpPipelineBeginProcessInboundRequestStartIsEnabled()4150         internal static bool HttpPipelineBeginProcessInboundRequestStartIsEnabled()
4151         {
4152             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(173));
4153         }
4154 
4155         /// <summary>
4156         /// Gets trace definition like: Http message handler started processing the inbound request asynchronously.
4157         /// Event description ID=3408, Level=Verbose, Channel=Debug
4158         /// </summary>
4159         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineBeginProcessInboundRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4160         internal static void HttpPipelineBeginProcessInboundRequestStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4161         {
4162             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4163             if (TD.IsEtwEventEnabled(173))
4164             {
4165                 TD.WriteEtwEvent(173, eventTraceActivity, payload.AppDomainFriendlyName);
4166             }
4167         }
4168 
4169         /// <summary>
4170         /// Check if trace definition is enabled
4171         /// Event description ID=3409, Level=Verbose, Channel=Debug
4172         /// </summary>
HttpPipelineProcessInboundRequestStopIsEnabled()4173         internal static bool HttpPipelineProcessInboundRequestStopIsEnabled()
4174         {
4175             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(174));
4176         }
4177 
4178         /// <summary>
4179         /// Gets trace definition like: Http message handler completed processing an inbound request.
4180         /// Event description ID=3409, Level=Verbose, Channel=Debug
4181         /// </summary>
4182         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineProcessInboundRequestStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4183         internal static void HttpPipelineProcessInboundRequestStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4184         {
4185             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4186             if (TD.IsEtwEventEnabled(174))
4187             {
4188                 TD.WriteEtwEvent(174, eventTraceActivity, payload.AppDomainFriendlyName);
4189             }
4190         }
4191 
4192         /// <summary>
4193         /// Check if trace definition is enabled
4194         /// Event description ID=3410, Level=Warning, Channel=ANALYTIC
4195         /// </summary>
HttpPipelineFaultedIsEnabled()4196         internal static bool HttpPipelineFaultedIsEnabled()
4197         {
4198             return (FxTrace.ShouldTraceWarning && TD.IsEtwEventEnabled(175));
4199         }
4200 
4201         /// <summary>
4202         /// Gets trace definition like: Http message handler is faulted.
4203         /// Event description ID=3410, Level=Warning, Channel=ANALYTIC
4204         /// </summary>
4205         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4206         internal static void HttpPipelineFaulted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4207         {
4208             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4209             if (TD.IsEtwEventEnabled(175))
4210             {
4211                 TD.WriteEtwEvent(175, eventTraceActivity, payload.AppDomainFriendlyName);
4212             }
4213         }
4214 
4215         /// <summary>
4216         /// Check if trace definition is enabled
4217         /// Event description ID=3411, Level=Error, Channel=ANALYTIC
4218         /// </summary>
HttpPipelineTimeoutExceptionIsEnabled()4219         internal static bool HttpPipelineTimeoutExceptionIsEnabled()
4220         {
4221             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(176));
4222         }
4223 
4224         /// <summary>
4225         /// Gets trace definition like: WebSocket connection timed out.
4226         /// Event description ID=3411, Level=Error, Channel=ANALYTIC
4227         /// </summary>
4228         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineTimeoutException(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4229         internal static void HttpPipelineTimeoutException(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4230         {
4231             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4232             if (TD.IsEtwEventEnabled(176))
4233             {
4234                 TD.WriteEtwEvent(176, eventTraceActivity, payload.AppDomainFriendlyName);
4235             }
4236         }
4237 
4238         /// <summary>
4239         /// Check if trace definition is enabled
4240         /// Event description ID=3412, Level=Verbose, Channel=Debug
4241         /// </summary>
HttpPipelineProcessResponseStartIsEnabled()4242         internal static bool HttpPipelineProcessResponseStartIsEnabled()
4243         {
4244             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(177));
4245         }
4246 
4247         /// <summary>
4248         /// Gets trace definition like: Http message handler started processing the response.
4249         /// Event description ID=3412, Level=Verbose, Channel=Debug
4250         /// </summary>
4251         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineProcessResponseStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4252         internal static void HttpPipelineProcessResponseStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4253         {
4254             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4255             if (TD.IsEtwEventEnabled(177))
4256             {
4257                 TD.WriteEtwEvent(177, eventTraceActivity, payload.AppDomainFriendlyName);
4258             }
4259         }
4260 
4261         /// <summary>
4262         /// Check if trace definition is enabled
4263         /// Event description ID=3413, Level=Verbose, Channel=Debug
4264         /// </summary>
HttpPipelineBeginProcessResponseStartIsEnabled()4265         internal static bool HttpPipelineBeginProcessResponseStartIsEnabled()
4266         {
4267             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(178));
4268         }
4269 
4270         /// <summary>
4271         /// Gets trace definition like: Http message handler started processing the response asynchronously.
4272         /// Event description ID=3413, Level=Verbose, Channel=Debug
4273         /// </summary>
4274         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineBeginProcessResponseStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4275         internal static void HttpPipelineBeginProcessResponseStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4276         {
4277             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4278             if (TD.IsEtwEventEnabled(178))
4279             {
4280                 TD.WriteEtwEvent(178, eventTraceActivity, payload.AppDomainFriendlyName);
4281             }
4282         }
4283 
4284         /// <summary>
4285         /// Check if trace definition is enabled
4286         /// Event description ID=3414, Level=Verbose, Channel=Debug
4287         /// </summary>
HttpPipelineProcessResponseStopIsEnabled()4288         internal static bool HttpPipelineProcessResponseStopIsEnabled()
4289         {
4290             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(179));
4291         }
4292 
4293         /// <summary>
4294         /// Gets trace definition like: Http message handler completed processing the response.
4295         /// Event description ID=3414, Level=Verbose, Channel=Debug
4296         /// </summary>
4297         /// <param name="eventTraceActivity">The event trace activity</param>
HttpPipelineProcessResponseStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4298         internal static void HttpPipelineProcessResponseStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4299         {
4300             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4301             if (TD.IsEtwEventEnabled(179))
4302             {
4303                 TD.WriteEtwEvent(179, eventTraceActivity, payload.AppDomainFriendlyName);
4304             }
4305         }
4306 
4307         /// <summary>
4308         /// Check if trace definition is enabled
4309         /// Event description ID=3415, Level=Verbose, Channel=Debug
4310         /// </summary>
WebSocketConnectionRequestSendStartIsEnabled()4311         internal static bool WebSocketConnectionRequestSendStartIsEnabled()
4312         {
4313             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(180));
4314         }
4315 
4316         /// <summary>
4317         /// Gets trace definition like: WebSocket connection request to '{0}' send start.
4318         /// Event description ID=3415, Level=Verbose, Channel=Debug
4319         /// </summary>
4320         /// <param name="eventTraceActivity">The event trace activity</param>
4321         /// <param name="remoteAddress">Parameter 0 for event: WebSocket connection request to '{0}' send start.</param>
WebSocketConnectionRequestSendStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string remoteAddress)4322         internal static void WebSocketConnectionRequestSendStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string remoteAddress)
4323         {
4324             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4325             if (TD.IsEtwEventEnabled(180))
4326             {
4327                 TD.WriteEtwEvent(180, eventTraceActivity, remoteAddress, payload.AppDomainFriendlyName);
4328             }
4329         }
4330 
4331         /// <summary>
4332         /// Check if trace definition is enabled
4333         /// Event description ID=3416, Level=Verbose, Channel=Debug
4334         /// </summary>
WebSocketConnectionRequestSendStopIsEnabled()4335         internal static bool WebSocketConnectionRequestSendStopIsEnabled()
4336         {
4337             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(181));
4338         }
4339 
4340         /// <summary>
4341         /// Gets trace definition like: WebSocketId:{0} connection request sent.
4342         /// Event description ID=3416, Level=Verbose, Channel=Debug
4343         /// </summary>
4344         /// <param name="eventTraceActivity">The event trace activity</param>
4345         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} connection request sent.</param>
WebSocketConnectionRequestSendStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int websocketId)4346         internal static void WebSocketConnectionRequestSendStop(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int websocketId)
4347         {
4348             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4349             if (TD.IsEtwEventEnabled(181))
4350             {
4351                 TD.WriteEtwEvent(181, eventTraceActivity, websocketId, payload.AppDomainFriendlyName);
4352             }
4353         }
4354 
4355         /// <summary>
4356         /// Check if trace definition is enabled
4357         /// Event description ID=3417, Level=Verbose, Channel=Debug
4358         /// </summary>
WebSocketConnectionAcceptStartIsEnabled()4359         internal static bool WebSocketConnectionAcceptStartIsEnabled()
4360         {
4361             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(182));
4362         }
4363 
4364         /// <summary>
4365         /// Gets trace definition like: WebSocket connection accept start.
4366         /// Event description ID=3417, Level=Verbose, Channel=Debug
4367         /// </summary>
4368         /// <param name="eventTraceActivity">The event trace activity</param>
WebSocketConnectionAcceptStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)4369         internal static void WebSocketConnectionAcceptStart(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
4370         {
4371             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4372             if (TD.IsEtwEventEnabled(182))
4373             {
4374                 TD.WriteEtwEvent(182, eventTraceActivity, payload.AppDomainFriendlyName);
4375             }
4376         }
4377 
4378         /// <summary>
4379         /// Check if trace definition is enabled
4380         /// Event description ID=3418, Level=Verbose, Channel=Debug
4381         /// </summary>
WebSocketConnectionAcceptedIsEnabled()4382         internal static bool WebSocketConnectionAcceptedIsEnabled()
4383         {
4384             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(183));
4385         }
4386 
4387         /// <summary>
4388         /// Gets trace definition like: WebSocketId:{0} connection accepted.
4389         /// Event description ID=3418, Level=Verbose, Channel=Debug
4390         /// </summary>
4391         /// <param name="eventTraceActivity">The event trace activity</param>
4392         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} connection accepted.</param>
WebSocketConnectionAccepted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int websocketId)4393         internal static void WebSocketConnectionAccepted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int websocketId)
4394         {
4395             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4396             if (TD.IsEtwEventEnabled(183))
4397             {
4398                 TD.WriteEtwEvent(183, eventTraceActivity, websocketId, payload.AppDomainFriendlyName);
4399             }
4400         }
4401 
4402         /// <summary>
4403         /// Check if trace definition is enabled
4404         /// Event description ID=3419, Level=Error, Channel=ANALYTIC
4405         /// </summary>
WebSocketConnectionDeclinedIsEnabled()4406         internal static bool WebSocketConnectionDeclinedIsEnabled()
4407         {
4408             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(184));
4409         }
4410 
4411         /// <summary>
4412         /// Gets trace definition like: WebSocket connection declined with status code '{0}'
4413         /// Event description ID=3419, Level=Error, Channel=ANALYTIC
4414         /// </summary>
4415         /// <param name="eventTraceActivity">The event trace activity</param>
4416         /// <param name="errorMessage">Parameter 0 for event: WebSocket connection declined with status code '{0}'</param>
WebSocketConnectionDeclined(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string errorMessage)4417         internal static void WebSocketConnectionDeclined(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string errorMessage)
4418         {
4419             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4420             if (TD.IsEtwEventEnabled(184))
4421             {
4422                 TD.WriteEtwEvent(184, eventTraceActivity, errorMessage, payload.AppDomainFriendlyName);
4423             }
4424         }
4425 
4426         /// <summary>
4427         /// Check if trace definition is enabled
4428         /// Event description ID=3420, Level=Error, Channel=ANALYTIC
4429         /// </summary>
WebSocketConnectionFailedIsEnabled()4430         internal static bool WebSocketConnectionFailedIsEnabled()
4431         {
4432             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(185));
4433         }
4434 
4435         /// <summary>
4436         /// Gets trace definition like: WebSocket connection request failed: '{0}'
4437         /// Event description ID=3420, Level=Error, Channel=ANALYTIC
4438         /// </summary>
4439         /// <param name="eventTraceActivity">The event trace activity</param>
4440         /// <param name="errorMessage">Parameter 0 for event: WebSocket connection request failed: '{0}'</param>
WebSocketConnectionFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string errorMessage)4441         internal static void WebSocketConnectionFailed(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string errorMessage)
4442         {
4443             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4444             if (TD.IsEtwEventEnabled(185))
4445             {
4446                 TD.WriteEtwEvent(185, eventTraceActivity, errorMessage, payload.AppDomainFriendlyName);
4447             }
4448         }
4449 
4450         /// <summary>
4451         /// Check if trace definition is enabled
4452         /// Event description ID=3421, Level=Error, Channel=ANALYTIC
4453         /// </summary>
WebSocketConnectionAbortedIsEnabled()4454         internal static bool WebSocketConnectionAbortedIsEnabled()
4455         {
4456             return (FxTrace.ShouldTraceError && TD.IsEtwEventEnabled(186));
4457         }
4458 
4459         /// <summary>
4460         /// Gets trace definition like: WebSocketId:{0} connection is aborted.
4461         /// Event description ID=3421, Level=Error, Channel=ANALYTIC
4462         /// </summary>
4463         /// <param name="eventTraceActivity">The event trace activity</param>
4464         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} connection is aborted.</param>
WebSocketConnectionAborted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int websocketId)4465         internal static void WebSocketConnectionAborted(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, int websocketId)
4466         {
4467             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4468             if (TD.IsEtwEventEnabled(186))
4469             {
4470                 TD.WriteEtwEvent(186, eventTraceActivity, websocketId, payload.AppDomainFriendlyName);
4471             }
4472         }
4473 
4474         /// <summary>
4475         /// Check if trace definition is enabled
4476         /// Event description ID=3422, Level=Verbose, Channel=Debug
4477         /// </summary>
WebSocketAsyncWriteStartIsEnabled()4478         internal static bool WebSocketAsyncWriteStartIsEnabled()
4479         {
4480             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(187));
4481         }
4482 
4483         /// <summary>
4484         /// Gets trace definition like: WebSocketId:{0} writing '{1}' bytes to '{2}'.
4485         /// Event description ID=3422, Level=Verbose, Channel=Debug
4486         /// </summary>
4487         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} writing '{1}' bytes to '{2}'.</param>
4488         /// <param name="byteCount">Parameter 1 for event: WebSocketId:{0} writing '{1}' bytes to '{2}'.</param>
4489         /// <param name="remoteAddress">Parameter 2 for event: WebSocketId:{0} writing '{1}' bytes to '{2}'.</param>
WebSocketAsyncWriteStart(int websocketId, int byteCount, string remoteAddress)4490         internal static void WebSocketAsyncWriteStart(int websocketId, int byteCount, string remoteAddress)
4491         {
4492             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4493             if (TD.IsEtwEventEnabled(187))
4494             {
4495                 TD.WriteEtwEvent(187, null, websocketId, byteCount, remoteAddress, payload.AppDomainFriendlyName);
4496             }
4497         }
4498 
4499         /// <summary>
4500         /// Check if trace definition is enabled
4501         /// Event description ID=3423, Level=Verbose, Channel=Debug
4502         /// </summary>
WebSocketAsyncWriteStopIsEnabled()4503         internal static bool WebSocketAsyncWriteStopIsEnabled()
4504         {
4505             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(188));
4506         }
4507 
4508         /// <summary>
4509         /// Gets trace definition like: WebSocketId:{0} asynchronous write stop.
4510         /// Event description ID=3423, Level=Verbose, Channel=Debug
4511         /// </summary>
4512         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} asynchronous write stop.</param>
WebSocketAsyncWriteStop(int websocketId)4513         internal static void WebSocketAsyncWriteStop(int websocketId)
4514         {
4515             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4516             if (TD.IsEtwEventEnabled(188))
4517             {
4518                 TD.WriteEtwEvent(188, null, websocketId, payload.AppDomainFriendlyName);
4519             }
4520         }
4521 
4522         /// <summary>
4523         /// Check if trace definition is enabled
4524         /// Event description ID=3424, Level=Verbose, Channel=Debug
4525         /// </summary>
WebSocketAsyncReadStartIsEnabled()4526         internal static bool WebSocketAsyncReadStartIsEnabled()
4527         {
4528             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(189));
4529         }
4530 
4531         /// <summary>
4532         /// Gets trace definition like: WebSocketId:{0} read start.
4533         /// Event description ID=3424, Level=Verbose, Channel=Debug
4534         /// </summary>
4535         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} read start.</param>
WebSocketAsyncReadStart(int websocketId)4536         internal static void WebSocketAsyncReadStart(int websocketId)
4537         {
4538             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4539             if (TD.IsEtwEventEnabled(189))
4540             {
4541                 TD.WriteEtwEvent(189, null, websocketId, payload.AppDomainFriendlyName);
4542             }
4543         }
4544 
4545         /// <summary>
4546         /// Check if trace definition is enabled
4547         /// Event description ID=3425, Level=Verbose, Channel=Debug
4548         /// </summary>
WebSocketAsyncReadStopIsEnabled()4549         internal static bool WebSocketAsyncReadStopIsEnabled()
4550         {
4551             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(190));
4552         }
4553 
4554         /// <summary>
4555         /// Gets trace definition like: WebSocketId:{0} read '{1}' bytes from '{2}'.
4556         /// Event description ID=3425, Level=Verbose, Channel=Debug
4557         /// </summary>
4558         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} read '{1}' bytes from '{2}'.</param>
4559         /// <param name="byteCount">Parameter 1 for event: WebSocketId:{0} read '{1}' bytes from '{2}'.</param>
4560         /// <param name="remoteAddress">Parameter 2 for event: WebSocketId:{0} read '{1}' bytes from '{2}'.</param>
WebSocketAsyncReadStop(int websocketId, int byteCount, string remoteAddress)4561         internal static void WebSocketAsyncReadStop(int websocketId, int byteCount, string remoteAddress)
4562         {
4563             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4564             if (TD.IsEtwEventEnabled(190))
4565             {
4566                 TD.WriteEtwEvent(190, null, websocketId, byteCount, remoteAddress, payload.AppDomainFriendlyName);
4567             }
4568         }
4569 
4570         /// <summary>
4571         /// Check if trace definition is enabled
4572         /// Event description ID=3426, Level=Verbose, Channel=Debug
4573         /// </summary>
WebSocketCloseSentIsEnabled()4574         internal static bool WebSocketCloseSentIsEnabled()
4575         {
4576             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(191));
4577         }
4578 
4579         /// <summary>
4580         /// Gets trace definition like: WebSocketId:{0} sending close message to '{1}' with close status '{2}'.
4581         /// Event description ID=3426, Level=Verbose, Channel=Debug
4582         /// </summary>
4583         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} sending close message to '{1}' with close status '{2}'.</param>
4584         /// <param name="remoteAddress">Parameter 1 for event: WebSocketId:{0} sending close message to '{1}' with close status '{2}'.</param>
4585         /// <param name="closeStatus">Parameter 2 for event: WebSocketId:{0} sending close message to '{1}' with close status '{2}'.</param>
WebSocketCloseSent(int websocketId, string remoteAddress, string closeStatus)4586         internal static void WebSocketCloseSent(int websocketId, string remoteAddress, string closeStatus)
4587         {
4588             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4589             if (TD.IsEtwEventEnabled(191))
4590             {
4591                 TD.WriteEtwEvent(191, null, websocketId, remoteAddress, closeStatus, payload.AppDomainFriendlyName);
4592             }
4593         }
4594 
4595         /// <summary>
4596         /// Check if trace definition is enabled
4597         /// Event description ID=3427, Level=Verbose, Channel=Debug
4598         /// </summary>
WebSocketCloseOutputSentIsEnabled()4599         internal static bool WebSocketCloseOutputSentIsEnabled()
4600         {
4601             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(192));
4602         }
4603 
4604         /// <summary>
4605         /// Gets trace definition like: WebSocketId:{0} sending close output message to '{1}' with close status '{2}'.
4606         /// Event description ID=3427, Level=Verbose, Channel=Debug
4607         /// </summary>
4608         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} sending close output message to '{1}' with close status '{2}'.</param>
4609         /// <param name="remoteAddress">Parameter 1 for event: WebSocketId:{0} sending close output message to '{1}' with close status '{2}'.</param>
4610         /// <param name="closeStatus">Parameter 2 for event: WebSocketId:{0} sending close output message to '{1}' with close status '{2}'.</param>
WebSocketCloseOutputSent(int websocketId, string remoteAddress, string closeStatus)4611         internal static void WebSocketCloseOutputSent(int websocketId, string remoteAddress, string closeStatus)
4612         {
4613             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4614             if (TD.IsEtwEventEnabled(192))
4615             {
4616                 TD.WriteEtwEvent(192, null, websocketId, remoteAddress, closeStatus, payload.AppDomainFriendlyName);
4617             }
4618         }
4619 
4620         /// <summary>
4621         /// Check if trace definition is enabled
4622         /// Event description ID=3428, Level=Verbose, Channel=Debug
4623         /// </summary>
WebSocketConnectionClosedIsEnabled()4624         internal static bool WebSocketConnectionClosedIsEnabled()
4625         {
4626             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(193));
4627         }
4628 
4629         /// <summary>
4630         /// Gets trace definition like: WebSocketId:{0} connection closed.
4631         /// Event description ID=3428, Level=Verbose, Channel=Debug
4632         /// </summary>
4633         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} connection closed.</param>
WebSocketConnectionClosed(int websocketId)4634         internal static void WebSocketConnectionClosed(int websocketId)
4635         {
4636             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4637             if (TD.IsEtwEventEnabled(193))
4638             {
4639                 TD.WriteEtwEvent(193, null, websocketId, payload.AppDomainFriendlyName);
4640             }
4641         }
4642 
4643         /// <summary>
4644         /// Check if trace definition is enabled
4645         /// Event description ID=3429, Level=Verbose, Channel=Debug
4646         /// </summary>
WebSocketCloseStatusReceivedIsEnabled()4647         internal static bool WebSocketCloseStatusReceivedIsEnabled()
4648         {
4649             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(194));
4650         }
4651 
4652         /// <summary>
4653         /// Gets trace definition like: WebSocketId:{0} connection close message received with status '{1}'.
4654         /// Event description ID=3429, Level=Verbose, Channel=Debug
4655         /// </summary>
4656         /// <param name="websocketId">Parameter 0 for event: WebSocketId:{0} connection close message received with status '{1}'.</param>
4657         /// <param name="closeStatus">Parameter 1 for event: WebSocketId:{0} connection close message received with status '{1}'.</param>
WebSocketCloseStatusReceived(int websocketId, string closeStatus)4658         internal static void WebSocketCloseStatusReceived(int websocketId, string closeStatus)
4659         {
4660             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4661             if (TD.IsEtwEventEnabled(194))
4662             {
4663                 TD.WriteEtwEvent(194, null, websocketId, closeStatus, payload.AppDomainFriendlyName);
4664             }
4665         }
4666 
4667         /// <summary>
4668         /// Check if trace definition is enabled
4669         /// Event description ID=3430, Level=Verbose, Channel=Debug
4670         /// </summary>
WebSocketUseVersionFromClientWebSocketFactoryIsEnabled()4671         internal static bool WebSocketUseVersionFromClientWebSocketFactoryIsEnabled()
4672         {
4673             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(195));
4674         }
4675 
4676         /// <summary>
4677         /// Gets trace definition like: Using the WebSocketVersion from a client WebSocket factory of type '{0}'.
4678         /// Event description ID=3430, Level=Verbose, Channel=Debug
4679         /// </summary>
4680         /// <param name="eventTraceActivity">The event trace activity</param>
4681         /// <param name="clientWebSocketFactoryType">Parameter 0 for event: Using the WebSocketVersion from a client WebSocket factory of type '{0}'.</param>
WebSocketUseVersionFromClientWebSocketFactory(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string clientWebSocketFactoryType)4682         internal static void WebSocketUseVersionFromClientWebSocketFactory(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string clientWebSocketFactoryType)
4683         {
4684             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4685             if (TD.IsEtwEventEnabled(195))
4686             {
4687                 TD.WriteEtwEvent(195, eventTraceActivity, clientWebSocketFactoryType, payload.AppDomainFriendlyName);
4688             }
4689         }
4690 
4691         /// <summary>
4692         /// Check if trace definition is enabled
4693         /// Event description ID=3431, Level=Verbose, Channel=Debug
4694         /// </summary>
WebSocketCreateClientWebSocketWithFactoryIsEnabled()4695         internal static bool WebSocketCreateClientWebSocketWithFactoryIsEnabled()
4696         {
4697             return (FxTrace.ShouldTraceVerbose && TD.IsEtwEventEnabled(196));
4698         }
4699 
4700         /// <summary>
4701         /// Gets trace definition like: Creating the client WebSocket with a factory of type '{0}'.
4702         /// Event description ID=3431, Level=Verbose, Channel=Debug
4703         /// </summary>
4704         /// <param name="eventTraceActivity">The event trace activity</param>
4705         /// <param name="clientWebSocketFactoryType">Parameter 0 for event: Creating the client WebSocket with a factory of type '{0}'.</param>
WebSocketCreateClientWebSocketWithFactory(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string clientWebSocketFactoryType)4706         internal static void WebSocketCreateClientWebSocketWithFactory(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string clientWebSocketFactoryType)
4707         {
4708             TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null);
4709             if (TD.IsEtwEventEnabled(196))
4710             {
4711                 TD.WriteEtwEvent(196, eventTraceActivity, clientWebSocketFactoryType, payload.AppDomainFriendlyName);
4712             }
4713         }
4714 
4715         /// <summary>
4716         /// Creates the event descriptors array
4717         /// </summary>
4718         // Critical = Sets the SecurityCritical member eventDescriptors
4719         // Safe = We control what the event descriptors contain
4720         [System.Security.SecuritySafeCriticalAttribute()]
CreateEventDescriptors()4721         static void CreateEventDescriptors()
4722         {
4723             System.Runtime.Diagnostics.EventDescriptor[] descriptors = new System.Runtime.Diagnostics.EventDescriptor[] {
4724                     new System.Runtime.Diagnostics.EventDescriptor(217, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)20, 0x9d2, 0x1000000000080004),
4725                     new System.Runtime.Diagnostics.EventDescriptor(201, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)16, 0x9d2, 0x1000000000080004),
4726                     new System.Runtime.Diagnostics.EventDescriptor(202, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)17, 0x9d2, 0x2000000000080004),
4727                     new System.Runtime.Diagnostics.EventDescriptor(203, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)19, 0x9d2, 0x2000000000080004),
4728                     new System.Runtime.Diagnostics.EventDescriptor(204, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)18, 0x9d2, 0x2000000000080004),
4729                     new System.Runtime.Diagnostics.EventDescriptor(205, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)53, 0x9e5, 0x2000000000080004),
4730                     new System.Runtime.Diagnostics.EventDescriptor(206, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x0, 0x2000000000080004),
4731                     new System.Runtime.Diagnostics.EventDescriptor(207, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x0, 0x2000000000080004),
4732                     new System.Runtime.Diagnostics.EventDescriptor(208, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)51, 0x9e5, 0x2000000000080004),
4733                     new System.Runtime.Diagnostics.EventDescriptor(209, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)52, 0x9e5, 0x2000000000080004),
4734                     new System.Runtime.Diagnostics.EventDescriptor(210, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x0, 0x20000000004E0004),
4735                     new System.Runtime.Diagnostics.EventDescriptor(211, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)56, 0x9e5, 0x2000000000080004),
4736                     new System.Runtime.Diagnostics.EventDescriptor(212, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)55, 0x9e5, 0x2000000000080004),
4737                     new System.Runtime.Diagnostics.EventDescriptor(214, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)54, 0x9e5, 0x20000000000E0004),
4738                     new System.Runtime.Diagnostics.EventDescriptor(215, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0xa27, 0x2000000000080400),
4739                     new System.Runtime.Diagnostics.EventDescriptor(216, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0xa28, 0x2000000000080400),
4740                     new System.Runtime.Diagnostics.EventDescriptor(451, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x0, 0x2000000000080020),
4741                     new System.Runtime.Diagnostics.EventDescriptor(452, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x0, 0x2000000000080020),
4742                     new System.Runtime.Diagnostics.EventDescriptor(4600, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x0, 0x1000000000000020),
4743                     new System.Runtime.Diagnostics.EventDescriptor(404, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Resume, 0xa1c, 0x2000000000080004),
4744                     new System.Runtime.Diagnostics.EventDescriptor(402, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa1c, 0x2000000000080004),
4745                     new System.Runtime.Diagnostics.EventDescriptor(401, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0xa1c, 0x2000000000080004),
4746                     new System.Runtime.Diagnostics.EventDescriptor(403, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Suspend, 0xa1c, 0x2000000000080004),
4747                     new System.Runtime.Diagnostics.EventDescriptor(218, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0xa10, 0x2000000000080004),
4748                     new System.Runtime.Diagnostics.EventDescriptor(219, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9e5, 0x20000000000E0004),
4749                     new System.Runtime.Diagnostics.EventDescriptor(222, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x9e5, 0x20000000000E0004),
4750                     new System.Runtime.Diagnostics.EventDescriptor(223, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x9e5, 0x20000000000E0004),
4751                     new System.Runtime.Diagnostics.EventDescriptor(224, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x9e5, 0x20000000004E0004),
4752                     new System.Runtime.Diagnostics.EventDescriptor(221, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x0, 0x20000000000A0400),
4753                     new System.Runtime.Diagnostics.EventDescriptor(220, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x0, 0x20000000000A0400),
4754                     new System.Runtime.Diagnostics.EventDescriptor(509, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa17, 0x2000000000000001),
4755                     new System.Runtime.Diagnostics.EventDescriptor(510, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0xa17, 0x2000000000000001),
4756                     new System.Runtime.Diagnostics.EventDescriptor(701, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa11, 0x2000000000000004),
4757                     new System.Runtime.Diagnostics.EventDescriptor(702, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0xa11, 0x2000000000000004),
4758                     new System.Runtime.Diagnostics.EventDescriptor(703, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa10, 0x2000000000000004),
4759                     new System.Runtime.Diagnostics.EventDescriptor(704, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa10, 0x2000000000000004),
4760                     new System.Runtime.Diagnostics.EventDescriptor(706, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa28, 0x1000000000000100),
4761                     new System.Runtime.Diagnostics.EventDescriptor(707, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa28, 0x1000000000000100),
4762                     new System.Runtime.Diagnostics.EventDescriptor(708, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa27, 0x2000000000000100),
4763                     new System.Runtime.Diagnostics.EventDescriptor(709, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)49, 0x9e5, 0x2000000000000004),
4764                     new System.Runtime.Diagnostics.EventDescriptor(710, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)128, 0xa27, 0x2000000000000004),
4765                     new System.Runtime.Diagnostics.EventDescriptor(711, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)48, 0x9e5, 0x2000000000000004),
4766                     new System.Runtime.Diagnostics.EventDescriptor(712, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)50, 0x9e5, 0x2000000000000004),
4767                     new System.Runtime.Diagnostics.EventDescriptor(715, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)14, 0x9d2, 0x2000000000000004),
4768                     new System.Runtime.Diagnostics.EventDescriptor(716, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)15, 0x9d2, 0x2000000000000004),
4769                     new System.Runtime.Diagnostics.EventDescriptor(717, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa28, 0x2000000000000100),
4770                     new System.Runtime.Diagnostics.EventDescriptor(3301, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x0, 0x1000000000001000),
4771                     new System.Runtime.Diagnostics.EventDescriptor(3303, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x0, 0x1000000000001000),
4772                     new System.Runtime.Diagnostics.EventDescriptor(3300, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x0, 0x2000000000001000),
4773                     new System.Runtime.Diagnostics.EventDescriptor(3302, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x9e5, 0x2000000000000004),
4774                     new System.Runtime.Diagnostics.EventDescriptor(3305, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x9cf, 0x1000000000000004),
4775                     new System.Runtime.Diagnostics.EventDescriptor(3306, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x9cf, 0x1000000000000004),
4776                     new System.Runtime.Diagnostics.EventDescriptor(3307, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x9cf, 0x1000000000000004),
4777                     new System.Runtime.Diagnostics.EventDescriptor(3308, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x9cf, 0x1000000000000004),
4778                     new System.Runtime.Diagnostics.EventDescriptor(3309, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0x0, 0x1000000000000004),
4779                     new System.Runtime.Diagnostics.EventDescriptor(3310, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9e5, 0x2000000000000004),
4780                     new System.Runtime.Diagnostics.EventDescriptor(3311, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0x9e5, 0x2000000000000004),
4781                     new System.Runtime.Diagnostics.EventDescriptor(3312, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0x9fb, 0x1000000000001000),
4782                     new System.Runtime.Diagnostics.EventDescriptor(3313, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0x9fc, 0x1000000000001000),
4783                     new System.Runtime.Diagnostics.EventDescriptor(3314, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa23, 0x2000000000000004),
4784                     new System.Runtime.Diagnostics.EventDescriptor(3319, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9d9, 0x1000000000000200),
4785                     new System.Runtime.Diagnostics.EventDescriptor(3320, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d9, 0x1000000000000200),
4786                     new System.Runtime.Diagnostics.EventDescriptor(3321, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9da, 0x1000000000001000),
4787                     new System.Runtime.Diagnostics.EventDescriptor(3322, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9ec, 0x1000000000000004),
4788                     new System.Runtime.Diagnostics.EventDescriptor(3323, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9ec, 0x1000000000000004),
4789                     new System.Runtime.Diagnostics.EventDescriptor(3324, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9ed, 0x1000000000000004),
4790                     new System.Runtime.Diagnostics.EventDescriptor(3325, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9ed, 0x1000000000000004),
4791                     new System.Runtime.Diagnostics.EventDescriptor(3326, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9ee, 0x1000000000000004),
4792                     new System.Runtime.Diagnostics.EventDescriptor(3327, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9ee, 0x1000000000000004),
4793                     new System.Runtime.Diagnostics.EventDescriptor(3328, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9eb, 0x1000000000000004),
4794                     new System.Runtime.Diagnostics.EventDescriptor(3329, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9eb, 0x1000000000000004),
4795                     new System.Runtime.Diagnostics.EventDescriptor(3330, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa0d, 0x1000000000000010),
4796                     new System.Runtime.Diagnostics.EventDescriptor(3331, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa0d, 0x1000000000000010),
4797                     new System.Runtime.Diagnostics.EventDescriptor(3332, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa0b, 0x1000000000000010),
4798                     new System.Runtime.Diagnostics.EventDescriptor(3333, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa0b, 0x1000000000000010),
4799                     new System.Runtime.Diagnostics.EventDescriptor(3334, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa0e, 0x1000000000000014),
4800                     new System.Runtime.Diagnostics.EventDescriptor(3335, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa18, 0x1000000000000004),
4801                     new System.Runtime.Diagnostics.EventDescriptor(3336, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa18, 0x1000000000000004),
4802                     new System.Runtime.Diagnostics.EventDescriptor(3337, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9d1, 0x1000000000001000),
4803                     new System.Runtime.Diagnostics.EventDescriptor(3338, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d1, 0x1000000000001000),
4804                     new System.Runtime.Diagnostics.EventDescriptor(3339, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d0, 0x1000000000000004),
4805                     new System.Runtime.Diagnostics.EventDescriptor(3340, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9d9, 0x1000000000001000),
4806                     new System.Runtime.Diagnostics.EventDescriptor(3341, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d9, 0x1000000000001000),
4807                     new System.Runtime.Diagnostics.EventDescriptor(3342, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9d7, 0x1000000000001000),
4808                     new System.Runtime.Diagnostics.EventDescriptor(3343, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d7, 0x1000000000001000),
4809                     new System.Runtime.Diagnostics.EventDescriptor(3345, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000001000),
4810                     new System.Runtime.Diagnostics.EventDescriptor(3346, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000001000),
4811                     new System.Runtime.Diagnostics.EventDescriptor(3347, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d9, 0x1000000000000200),
4812                     new System.Runtime.Diagnostics.EventDescriptor(3348, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Critical, (byte)TraceEventOpcode.Info, 0xa16, 0x2000000000000200),
4813                     new System.Runtime.Diagnostics.EventDescriptor(3349, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9f8, 0x1000000000001000),
4814                     new System.Runtime.Diagnostics.EventDescriptor(3350, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9f8, 0x1000000000001000),
4815                     new System.Runtime.Diagnostics.EventDescriptor(3351, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4816                     new System.Runtime.Diagnostics.EventDescriptor(3352, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9d7, 0x2000000000000200),
4817                     new System.Runtime.Diagnostics.EventDescriptor(3353, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x9d7, 0x2000000000000200),
4818                     new System.Runtime.Diagnostics.EventDescriptor(3354, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa0d, 0x1000000000000010),
4819                     new System.Runtime.Diagnostics.EventDescriptor(3355, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa0d, 0x2000000000000010),
4820                     new System.Runtime.Diagnostics.EventDescriptor(3356, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa0e, 0x1000000000000010),
4821                     new System.Runtime.Diagnostics.EventDescriptor(3357, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa0e, 0x2000000000000010),
4822                     new System.Runtime.Diagnostics.EventDescriptor(3358, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9c5, 0x1000000000000800),
4823                     new System.Runtime.Diagnostics.EventDescriptor(3359, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa0c, 0x1000000000000010),
4824                     new System.Runtime.Diagnostics.EventDescriptor(3360, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0xa0c, 0x2000000000000010),
4825                     new System.Runtime.Diagnostics.EventDescriptor(3361, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0xa27, 0x2000000000000100),
4826                     new System.Runtime.Diagnostics.EventDescriptor(3362, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0xa28, 0x2000000000000100),
4827                     new System.Runtime.Diagnostics.EventDescriptor(3363, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0xa0e, 0x2000000000000100),
4828                     new System.Runtime.Diagnostics.EventDescriptor(3364, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9c6, 0x2000000000000800),
4829                     new System.Runtime.Diagnostics.EventDescriptor(3365, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9c6, 0x2000000000000800),
4830                     new System.Runtime.Diagnostics.EventDescriptor(3366, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9c6, 0x2000000000000800),
4831                     new System.Runtime.Diagnostics.EventDescriptor(3367, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa1a, 0x2000000000001000),
4832                     new System.Runtime.Diagnostics.EventDescriptor(3368, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)115, 0xa1b, 0x2000000000000010),
4833                     new System.Runtime.Diagnostics.EventDescriptor(3369, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)114, 0xa1b, 0x2000000000000010),
4834                     new System.Runtime.Diagnostics.EventDescriptor(3370, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9fc, 0x1000000000001000),
4835                     new System.Runtime.Diagnostics.EventDescriptor(3371, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9fc, 0x1000000000001000),
4836                     new System.Runtime.Diagnostics.EventDescriptor(3372, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9fc, 0x1000000000001000),
4837                     new System.Runtime.Diagnostics.EventDescriptor(3373, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9fb, 0x1000000000001000),
4838                     new System.Runtime.Diagnostics.EventDescriptor(3374, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9fb, 0x1000000000001000),
4839                     new System.Runtime.Diagnostics.EventDescriptor(3375, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9fb, 0x1000000000001000),
4840                     new System.Runtime.Diagnostics.EventDescriptor(3376, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa27, 0x1000000000000100),
4841                     new System.Runtime.Diagnostics.EventDescriptor(3377, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa27, 0x1000000000000200),
4842                     new System.Runtime.Diagnostics.EventDescriptor(3378, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa27, 0x1000000000000200),
4843                     new System.Runtime.Diagnostics.EventDescriptor(3379, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa28, 0x1000000000000200),
4844                     new System.Runtime.Diagnostics.EventDescriptor(3380, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa28, 0x1000000000000200),
4845                     new System.Runtime.Diagnostics.EventDescriptor(3381, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)79, 0xa01, 0x1000000000001000),
4846                     new System.Runtime.Diagnostics.EventDescriptor(3382, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)78, 0xa01, 0x1000000000001000),
4847                     new System.Runtime.Diagnostics.EventDescriptor(3383, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)77, 0xa01, 0x1000000000001000),
4848                     new System.Runtime.Diagnostics.EventDescriptor(3384, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)115, 0xa1b, 0x2000000000000010),
4849                     new System.Runtime.Diagnostics.EventDescriptor(3385, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)114, 0xa1b, 0x2000000000000010),
4850                     new System.Runtime.Diagnostics.EventDescriptor(3386, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x9d8, 0x2000000000000200),
4851                     new System.Runtime.Diagnostics.EventDescriptor(3388, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa27, 0x2000000000000100),
4852                     new System.Runtime.Diagnostics.EventDescriptor(3389, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9d3, 0x1000000000001000),
4853                     new System.Runtime.Diagnostics.EventDescriptor(3390, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d3, 0x1000000000001000),
4854                     new System.Runtime.Diagnostics.EventDescriptor(3391, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Start, 0xa27, 0x2000000000000100),
4855                     new System.Runtime.Diagnostics.EventDescriptor(3392, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)57, 0x9e5, 0x1000000000000004),
4856                     new System.Runtime.Diagnostics.EventDescriptor(3393, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0x9fb, 0x1000000000001000),
4857                     new System.Runtime.Diagnostics.EventDescriptor(3394, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0x9fc, 0x1000000000001000),
4858                     new System.Runtime.Diagnostics.EventDescriptor(3395, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0x9fc, 0x1000000000001000),
4859                     new System.Runtime.Diagnostics.EventDescriptor(3396, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Start, 0xa28, 0x1000000000001000),
4860                     new System.Runtime.Diagnostics.EventDescriptor(3397, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Stop, 0xa28, 0x1000000000001000),
4861                     new System.Runtime.Diagnostics.EventDescriptor(1400, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4862                     new System.Runtime.Diagnostics.EventDescriptor(1401, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4863                     new System.Runtime.Diagnostics.EventDescriptor(1402, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4864                     new System.Runtime.Diagnostics.EventDescriptor(1403, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4865                     new System.Runtime.Diagnostics.EventDescriptor(1405, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4866                     new System.Runtime.Diagnostics.EventDescriptor(1406, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4867                     new System.Runtime.Diagnostics.EventDescriptor(1407, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4868                     new System.Runtime.Diagnostics.EventDescriptor(1409, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0xa24, 0x2000000000000004),
4869                     new System.Runtime.Diagnostics.EventDescriptor(1416, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4870                     new System.Runtime.Diagnostics.EventDescriptor(1417, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4871                     new System.Runtime.Diagnostics.EventDescriptor(1418, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0xa00, 0x1000000000400000),
4872                     new System.Runtime.Diagnostics.EventDescriptor(1419, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0xa00, 0x1000000000400000),
4873                     new System.Runtime.Diagnostics.EventDescriptor(1422, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4874                     new System.Runtime.Diagnostics.EventDescriptor(1423, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x1000000000400000),
4875                     new System.Runtime.Diagnostics.EventDescriptor(1424, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x1000000000400000),
4876                     new System.Runtime.Diagnostics.EventDescriptor(1430, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4877                     new System.Runtime.Diagnostics.EventDescriptor(1433, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4878                     new System.Runtime.Diagnostics.EventDescriptor(1438, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4879                     new System.Runtime.Diagnostics.EventDescriptor(1432, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4880                     new System.Runtime.Diagnostics.EventDescriptor(1431, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4881                     new System.Runtime.Diagnostics.EventDescriptor(1439, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Informational, (byte)TraceEventOpcode.Info, 0xa00, 0x1000000000400000),
4882                     new System.Runtime.Diagnostics.EventDescriptor(1441, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4883                     new System.Runtime.Diagnostics.EventDescriptor(1442, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0x9fe, 0x2000000000400000),
4884                     new System.Runtime.Diagnostics.EventDescriptor(1443, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9fe, 0x2000000000400000),
4885                     new System.Runtime.Diagnostics.EventDescriptor(1445, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4886                     new System.Runtime.Diagnostics.EventDescriptor(1446, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4887                     new System.Runtime.Diagnostics.EventDescriptor(1451, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0xa00, 0x2000000000400000),
4888                     new System.Runtime.Diagnostics.EventDescriptor(3398, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9f8, 0x1000000000001000),
4889                     new System.Runtime.Diagnostics.EventDescriptor(3399, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9f8, 0x1000000000001000),
4890                     new System.Runtime.Diagnostics.EventDescriptor(3405, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa37, 0x1000000000000010),
4891                     new System.Runtime.Diagnostics.EventDescriptor(3406, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa37, 0x1000000000000010),
4892                     new System.Runtime.Diagnostics.EventDescriptor(3401, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa33, 0x1000000000000010),
4893                     new System.Runtime.Diagnostics.EventDescriptor(3402, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa33, 0x1000000000000010),
4894                     new System.Runtime.Diagnostics.EventDescriptor(3403, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa36, 0x1000000000000010),
4895                     new System.Runtime.Diagnostics.EventDescriptor(3404, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0xa36, 0x1000000000000010),
4896                     new System.Runtime.Diagnostics.EventDescriptor(3407, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa27, 0x1000000000000100),
4897                     new System.Runtime.Diagnostics.EventDescriptor(3408, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa27, 0x1000000000000100),
4898                     new System.Runtime.Diagnostics.EventDescriptor(3409, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa27, 0x1000000000000100),
4899                     new System.Runtime.Diagnostics.EventDescriptor(3410, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Warning, (byte)TraceEventOpcode.Info, 0xa27, 0x2000000000000100),
4900                     new System.Runtime.Diagnostics.EventDescriptor(3411, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9d7, 0x2000000000000100),
4901                     new System.Runtime.Diagnostics.EventDescriptor(3412, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa28, 0x1000000000000100),
4902                     new System.Runtime.Diagnostics.EventDescriptor(3413, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa28, 0x1000000000000100),
4903                     new System.Runtime.Diagnostics.EventDescriptor(3414, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa28, 0x1000000000000100),
4904                     new System.Runtime.Diagnostics.EventDescriptor(3415, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9d7, 0x1000000000000100),
4905                     new System.Runtime.Diagnostics.EventDescriptor(3416, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d7, 0x1000000000000100),
4906                     new System.Runtime.Diagnostics.EventDescriptor(3417, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0x9d7, 0x1000000000000100),
4907                     new System.Runtime.Diagnostics.EventDescriptor(3418, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0x9d7, 0x1000000000000100),
4908                     new System.Runtime.Diagnostics.EventDescriptor(3419, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9d7, 0x2000000000000100),
4909                     new System.Runtime.Diagnostics.EventDescriptor(3420, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9d7, 0x2000000000000100),
4910                     new System.Runtime.Diagnostics.EventDescriptor(3421, 0, (byte)TraceChannel.Analytic, (byte)TraceEventLevel.Error, (byte)TraceEventOpcode.Info, 0x9d7, 0x2000000000000100),
4911                     new System.Runtime.Diagnostics.EventDescriptor(3422, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa28, 0x1000000000000100),
4912                     new System.Runtime.Diagnostics.EventDescriptor(3423, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa28, 0x1000000000000100),
4913                     new System.Runtime.Diagnostics.EventDescriptor(3424, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Start, 0xa27, 0x1000000000000100),
4914                     new System.Runtime.Diagnostics.EventDescriptor(3425, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Stop, 0xa27, 0x1000000000000100),
4915                     new System.Runtime.Diagnostics.EventDescriptor(3426, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000000100),
4916                     new System.Runtime.Diagnostics.EventDescriptor(3427, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000000100),
4917                     new System.Runtime.Diagnostics.EventDescriptor(3428, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000000100),
4918                     new System.Runtime.Diagnostics.EventDescriptor(3429, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000000100),
4919                     new System.Runtime.Diagnostics.EventDescriptor(3430, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000000100),
4920                     new System.Runtime.Diagnostics.EventDescriptor(3431, 0, (byte)TraceChannel.Debug, (byte)TraceEventLevel.Verbose, (byte)TraceEventOpcode.Info, 0x9d7, 0x1000000000000100)};
4921             // The hashcodes calculated from PTCop for TD.CreateEventDescriptors are unstable when just declaring
4922             // a local field of ushort[] if the array is non-empty and contains more than 2 entries, because
4923             // the c#-compiler is using some private types for optimization. The type name follows the following pattern:
4924             // <PrivateImplementationDetails>{6BAE93FD-290B-4DE0-BCEE-366B30800FDF} (where the GUID is changing with every build)
4925             // To scope the change to unblock PTCop as much as possible we wrap the list of End2EndEvents in a List<ushort>
4926             System.Collections.Generic.List<ushort> e2eEvents = new System.Collections.Generic.List<ushort>(120);
4927             e2eEvents.Add(201);
4928             e2eEvents.Add(202);
4929             e2eEvents.Add(203);
4930             e2eEvents.Add(204);
4931             e2eEvents.Add(205);
4932             e2eEvents.Add(208);
4933             e2eEvents.Add(209);
4934             e2eEvents.Add(211);
4935             e2eEvents.Add(212);
4936             e2eEvents.Add(214);
4937             e2eEvents.Add(215);
4938             e2eEvents.Add(216);
4939             e2eEvents.Add(217);
4940             e2eEvents.Add(218);
4941             e2eEvents.Add(219);
4942             e2eEvents.Add(220);
4943             e2eEvents.Add(221);
4944             e2eEvents.Add(222);
4945             e2eEvents.Add(223);
4946             e2eEvents.Add(509);
4947             e2eEvents.Add(510);
4948             e2eEvents.Add(701);
4949             e2eEvents.Add(702);
4950             e2eEvents.Add(703);
4951             e2eEvents.Add(704);
4952             e2eEvents.Add(706);
4953             e2eEvents.Add(707);
4954             e2eEvents.Add(708);
4955             e2eEvents.Add(709);
4956             e2eEvents.Add(710);
4957             e2eEvents.Add(711);
4958             e2eEvents.Add(712);
4959             e2eEvents.Add(715);
4960             e2eEvents.Add(716);
4961             e2eEvents.Add(717);
4962             e2eEvents.Add(3300);
4963             e2eEvents.Add(3301);
4964             e2eEvents.Add(3302);
4965             e2eEvents.Add(3303);
4966             e2eEvents.Add(3309);
4967             e2eEvents.Add(3310);
4968             e2eEvents.Add(3311);
4969             e2eEvents.Add(3312);
4970             e2eEvents.Add(3313);
4971             e2eEvents.Add(3319);
4972             e2eEvents.Add(3320);
4973             e2eEvents.Add(3322);
4974             e2eEvents.Add(3323);
4975             e2eEvents.Add(3324);
4976             e2eEvents.Add(3325);
4977             e2eEvents.Add(3326);
4978             e2eEvents.Add(3327);
4979             e2eEvents.Add(3328);
4980             e2eEvents.Add(3329);
4981             e2eEvents.Add(3330);
4982             e2eEvents.Add(3331);
4983             e2eEvents.Add(3332);
4984             e2eEvents.Add(3333);
4985             e2eEvents.Add(3334);
4986             e2eEvents.Add(3335);
4987             e2eEvents.Add(3336);
4988             e2eEvents.Add(3337);
4989             e2eEvents.Add(3338);
4990             e2eEvents.Add(3340);
4991             e2eEvents.Add(3341);
4992             e2eEvents.Add(3342);
4993             e2eEvents.Add(3343);
4994             e2eEvents.Add(3347);
4995             e2eEvents.Add(3348);
4996             e2eEvents.Add(3349);
4997             e2eEvents.Add(3350);
4998             e2eEvents.Add(3354);
4999             e2eEvents.Add(3355);
5000             e2eEvents.Add(3356);
5001             e2eEvents.Add(3357);
5002             e2eEvents.Add(3358);
5003             e2eEvents.Add(3359);
5004             e2eEvents.Add(3360);
5005             e2eEvents.Add(3361);
5006             e2eEvents.Add(3362);
5007             e2eEvents.Add(3363);
5008             e2eEvents.Add(3367);
5009             e2eEvents.Add(3369);
5010             e2eEvents.Add(3370);
5011             e2eEvents.Add(3371);
5012             e2eEvents.Add(3372);
5013             e2eEvents.Add(3376);
5014             e2eEvents.Add(3385);
5015             e2eEvents.Add(3388);
5016             e2eEvents.Add(3389);
5017             e2eEvents.Add(3390);
5018             e2eEvents.Add(3392);
5019             e2eEvents.Add(3393);
5020             e2eEvents.Add(3394);
5021             e2eEvents.Add(3395);
5022             e2eEvents.Add(3396);
5023             e2eEvents.Add(3397);
5024             e2eEvents.Add(3401);
5025             e2eEvents.Add(3402);
5026             e2eEvents.Add(3403);
5027             e2eEvents.Add(3404);
5028             e2eEvents.Add(3405);
5029             e2eEvents.Add(3406);
5030             e2eEvents.Add(3407);
5031             e2eEvents.Add(3408);
5032             e2eEvents.Add(3409);
5033             e2eEvents.Add(3410);
5034             e2eEvents.Add(3411);
5035             e2eEvents.Add(3412);
5036             e2eEvents.Add(3413);
5037             e2eEvents.Add(3414);
5038             e2eEvents.Add(3415);
5039             e2eEvents.Add(3416);
5040             e2eEvents.Add(3417);
5041             e2eEvents.Add(3418);
5042             e2eEvents.Add(3419);
5043             e2eEvents.Add(3420);
5044             e2eEvents.Add(3421);
5045             e2eEvents.Add(3430);
5046             e2eEvents.Add(3431);
5047             FxTrace.UpdateEventDefinitions(descriptors, e2eEvents.ToArray());
5048             eventDescriptors = descriptors;
5049         }
5050 
5051         /// <summary>
5052         /// Ensures that the event descriptors array is initialized
5053         /// </summary>
EnsureEventDescriptors()5054         static void EnsureEventDescriptors()
5055         {
5056             if (eventDescriptorsCreated)
5057             {
5058                 return;
5059             }
5060             System.Threading.Monitor.Enter(syncLock);
5061             try
5062             {
5063                 if (eventDescriptorsCreated)
5064                 {
5065                     return;
5066                 }
5067                 CreateEventDescriptors();
5068                 eventDescriptorsCreated = true;
5069             }
5070             finally
5071             {
5072                 System.Threading.Monitor.Exit(syncLock);
5073             }
5074         }
5075 
5076         /// <summary>
5077         /// Check if ETW tracing is enabled for the particular event
5078         /// </summary>
5079         /// <param name="eventIndex">The index of the event descriptor</param>
IsEtwEventEnabled(int eventIndex)5080         static bool IsEtwEventEnabled(int eventIndex)
5081         {
5082             if (FxTrace.Trace.IsEtwProviderEnabled)
5083             {
5084                 EnsureEventDescriptors();
5085                 return FxTrace.IsEventEnabled(eventIndex);
5086             }
5087             return false;
5088         }
5089 
5090         /// <summary>
5091         /// Writes ETW trace event
5092         ///</summary>
5093         /// <param name="eventIndex">The index of the event descriptor</param>>
5094         /// <param name="eventParam0">A parameter of the ETW event</param>>
5095         /// <param name="eventParam1">A parameter of the ETW event</param>>
5096         /// <param name="eventParam2">A parameter of the ETW event</param>>
5097         /// <param name="eventParam3">A parameter of the ETW event</param>>
5098         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5099         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5100         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3)5101         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3)
5102         {
5103             EnsureEventDescriptors();
5104             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3);
5105         }
5106 
5107         /// <summary>
5108         /// Writes ETW trace event
5109         ///</summary>
5110         /// <param name="eventIndex">The index of the event descriptor</param>>
5111         /// <param name="eventParam0">A parameter of the ETW event</param>>
5112         /// <param name="eventParam1">A parameter of the ETW event</param>>
5113         /// <param name="eventParam2">A parameter of the ETW event</param>>
5114         /// <param name="eventParam3">A parameter of the ETW event</param>>
5115         /// <param name="eventParam4">A parameter of the ETW event</param>>
5116         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5117         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5118         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3, string eventParam4)5119         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3, string eventParam4)
5120         {
5121             EnsureEventDescriptors();
5122             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4);
5123         }
5124 
5125         /// <summary>
5126         /// Writes ETW trace event
5127         ///</summary>
5128         /// <param name="eventIndex">The index of the event descriptor</param>>
5129         /// <param name="eventParam0">A parameter of the ETW event</param>>
5130         /// <param name="eventParam1">A parameter of the ETW event</param>>
5131         /// <param name="eventParam2">A parameter of the ETW event</param>>
5132         /// <param name="eventParam3">A parameter of the ETW event</param>>
5133         /// <param name="eventParam4">A parameter of the ETW event</param>>
5134         /// <param name="eventParam5">A parameter of the ETW event</param>>
5135         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5136         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5137         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, bool eventParam2, string eventParam3, string eventParam4, string eventParam5)5138         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, bool eventParam2, string eventParam3, string eventParam4, string eventParam5)
5139         {
5140             EnsureEventDescriptors();
5141             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4, eventParam5);
5142         }
5143 
5144         /// <summary>
5145         /// Writes ETW trace event
5146         ///</summary>
5147         /// <param name="eventIndex">The index of the event descriptor</param>>
5148         /// <param name="eventParam0">A parameter of the ETW event</param>>
5149         /// <param name="eventParam1">A parameter of the ETW event</param>>
5150         /// <param name="eventParam2">A parameter of the ETW event</param>>
5151         /// <param name="eventParam3">A parameter of the ETW event</param>>
5152         /// <param name="eventParam4">A parameter of the ETW event</param>>
5153         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5154         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5155         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, long eventParam2, string eventParam3, string eventParam4)5156         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, long eventParam2, string eventParam3, string eventParam4)
5157         {
5158             EnsureEventDescriptors();
5159             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4);
5160         }
5161 
5162         /// <summary>
5163         /// Writes ETW trace event
5164         ///</summary>
5165         /// <param name="eventIndex">The index of the event descriptor</param>>
5166         /// <param name="eventParam0">A parameter of the ETW event</param>>
5167         /// <param name="eventParam1">A parameter of the ETW event</param>>
5168         /// <param name="eventParam2">A parameter of the ETW event</param>>
5169         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5170         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5171         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2)5172         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2)
5173         {
5174             EnsureEventDescriptors();
5175             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2);
5176         }
5177 
5178         /// <summary>
5179         /// Writes ETW trace event
5180         ///</summary>
5181         /// <param name="eventIndex">The index of the event descriptor</param>>
5182         /// <param name="eventParam0">A parameter of the ETW event</param>>
5183         /// <param name="eventParam1">A parameter of the ETW event</param>>
5184         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5185         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5186         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1)5187         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1)
5188         {
5189             EnsureEventDescriptors();
5190             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1);
5191         }
5192 
5193         /// <summary>
5194         /// Writes ETW trace event
5195         ///</summary>
5196         /// <param name="eventIndex">The index of the event descriptor</param>>
5197         /// <param name="eventParam0">A parameter of the ETW event</param>>
5198         /// <param name="eventParam1">A parameter of the ETW event</param>>
5199         /// <param name="eventParam2">A parameter of the ETW event</param>>
5200         /// <param name="eventParam3">A parameter of the ETW event</param>>
5201         /// <param name="eventParam4">A parameter of the ETW event</param>>
5202         /// <param name="eventParam5">A parameter of the ETW event</param>>
5203         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5204         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5205         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3, string eventParam4, string eventParam5)5206         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3, string eventParam4, string eventParam5)
5207         {
5208             EnsureEventDescriptors();
5209             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4, eventParam5);
5210         }
5211 
5212         /// <summary>
5213         /// Writes ETW trace event
5214         ///</summary>
5215         /// <param name="eventIndex">The index of the event descriptor</param>>
5216         /// <param name="eventParam0">A parameter of the ETW event</param>>
5217         /// <param name="eventParam1">A parameter of the ETW event</param>>
5218         /// <param name="eventParam2">A parameter of the ETW event</param>>
5219         /// <param name="eventParam3">A parameter of the ETW event</param>>
5220         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5221         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5222         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3)5223         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3)
5224         {
5225             EnsureEventDescriptors();
5226             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3);
5227         }
5228 
5229         /// <summary>
5230         /// Writes ETW trace event
5231         ///</summary>
5232         /// <param name="eventIndex">The index of the event descriptor</param>>
5233         /// <param name="eventParam0">A parameter of the ETW event</param>>
5234         /// <param name="eventParam1">A parameter of the ETW event</param>>
5235         /// <param name="eventParam2">A parameter of the ETW event</param>>
5236         /// <param name="eventParam3">A parameter of the ETW event</param>>
5237         /// <param name="eventParam4">A parameter of the ETW event</param>>
5238         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5239         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5240         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, int eventParam2, string eventParam3, string eventParam4)5241         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, int eventParam2, string eventParam3, string eventParam4)
5242         {
5243             EnsureEventDescriptors();
5244             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4);
5245         }
5246 
5247         /// <summary>
5248         /// Writes ETW trace event
5249         ///</summary>
5250         /// <param name="eventIndex">The index of the event descriptor</param>>
5251         /// <param name="eventParam0">A parameter of the ETW event</param>>
5252         /// <param name="eventParam1">A parameter of the ETW event</param>>
5253         /// <param name="eventParam2">A parameter of the ETW event</param>>
5254         /// <param name="eventParam3">A parameter of the ETW event</param>>
5255         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5256         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5257         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, string eventParam2, string eventParam3)5258         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, string eventParam2, string eventParam3)
5259         {
5260             EnsureEventDescriptors();
5261             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3);
5262         }
5263 
5264         /// <summary>
5265         /// Writes ETW trace event
5266         ///</summary>
5267         /// <param name="eventIndex">The index of the event descriptor</param>>
5268         /// <param name="eventParam0">A parameter of the ETW event</param>>
5269         /// <param name="eventParam1">A parameter of the ETW event</param>>
5270         /// <param name="eventParam2">A parameter of the ETW event</param>>
5271         /// <param name="eventParam3">A parameter of the ETW event</param>>
5272         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5273         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5274         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, int eventParam2, string eventParam3)5275         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, int eventParam2, string eventParam3)
5276         {
5277             EnsureEventDescriptors();
5278             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3);
5279         }
5280 
5281         /// <summary>
5282         /// Writes ETW trace event
5283         ///</summary>
5284         /// <param name="eventIndex">The index of the event descriptor</param>>
5285         /// <param name="eventParam0">A parameter of the ETW event</param>>
5286         /// <param name="eventParam1">A parameter of the ETW event</param>>
5287         /// <param name="eventParam2">A parameter of the ETW event</param>>
5288         /// <param name="eventParam3">A parameter of the ETW event</param>>
5289         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5290         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5291         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, int eventParam2, string eventParam3)5292         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, int eventParam2, string eventParam3)
5293         {
5294             EnsureEventDescriptors();
5295             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3);
5296         }
5297 
5298         /// <summary>
5299         /// Writes ETW trace event
5300         ///</summary>
5301         /// <param name="eventIndex">The index of the event descriptor</param>>
5302         /// <param name="eventParam0">A parameter of the ETW event</param>>
5303         /// <param name="eventParam1">A parameter of the ETW event</param>>
5304         /// <param name="eventParam2">A parameter of the ETW event</param>>
5305         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5306         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5307         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, string eventParam2)5308         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, string eventParam2)
5309         {
5310             EnsureEventDescriptors();
5311             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2);
5312         }
5313 
5314         /// <summary>
5315         /// Writes ETW trace event
5316         ///</summary>
5317         /// <param name="eventIndex">The index of the event descriptor</param>>
5318         /// <param name="eventParam0">A parameter of the ETW event</param>>
5319         /// <param name="eventParam1">A parameter of the ETW event</param>>
5320         /// <param name="eventParam2">A parameter of the ETW event</param>>
5321         /// <param name="eventParam3">A parameter of the ETW event</param>>
5322         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5323         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5324         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, System.Guid eventParam2, string eventParam3)5325         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, System.Guid eventParam2, string eventParam3)
5326         {
5327             EnsureEventDescriptors();
5328             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3);
5329         }
5330 
5331         /// <summary>
5332         /// Writes ETW trace event
5333         ///</summary>
5334         /// <param name="eventIndex">The index of the event descriptor</param>>
5335         /// <param name="eventParam0">A parameter of the ETW event</param>>
5336         /// <param name="eventParam1">A parameter of the ETW event</param>>
5337         /// <param name="eventParam2">A parameter of the ETW event</param>>
5338         /// <param name="eventParam3">A parameter of the ETW event</param>>
5339         /// <param name="eventParam4">A parameter of the ETW event</param>>
5340         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5341         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5342         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, string eventParam2, string eventParam3, string eventParam4)5343         static bool WriteEtwEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, string eventParam2, string eventParam3, string eventParam4)
5344         {
5345             EnsureEventDescriptors();
5346             return FxTrace.Trace.EtwProvider.WriteEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4);
5347         }
5348 
5349         /// <summary>
5350         /// Writes ETW trace event
5351         ///</summary>
5352         /// <param name="eventIndex">The index of the event descriptor</param>>
5353         /// <param name="eventParam0">A parameter of the ETW event</param>>
5354         /// <param name="eventParam1">A parameter of the ETW event</param>>
5355         /// <param name="eventParam2">A parameter of the ETW event</param>>
5356         /// <param name="eventParam3">A parameter of the ETW event</param>>
5357         /// <param name="eventParam4">A parameter of the ETW event</param>>
5358         /// <param name="eventParam5">A parameter of the ETW event</param>>
5359         /// <param name="eventParam6">A parameter of the ETW event</param>>
5360         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5361         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5362         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwTransferEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3, string eventParam4, string eventParam5, string eventParam6)5363         static bool WriteEtwTransferEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3, string eventParam4, string eventParam5, string eventParam6)
5364         {
5365             EnsureEventDescriptors();
5366             return FxTrace.Trace.EtwProvider.WriteTransferEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4, eventParam5, eventParam6);
5367         }
5368 
5369         /// <summary>
5370         /// Writes ETW trace event
5371         ///</summary>
5372         /// <param name="eventIndex">The index of the event descriptor</param>>
5373         /// <param name="eventParam0">A parameter of the ETW event</param>>
5374         /// <param name="eventParam1">A parameter of the ETW event</param>>
5375         /// <param name="eventParam2">A parameter of the ETW event</param>>
5376         /// <param name="eventParam3">A parameter of the ETW event</param>>
5377         /// <param name="eventParam4">A parameter of the ETW event</param>>
5378         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5379         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5380         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwTransferEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3, string eventParam4)5381         static bool WriteEtwTransferEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3, string eventParam4)
5382         {
5383             EnsureEventDescriptors();
5384             return FxTrace.Trace.EtwProvider.WriteTransferEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3, eventParam4);
5385         }
5386 
5387         /// <summary>
5388         /// Writes ETW trace event
5389         ///</summary>
5390         /// <param name="eventIndex">The index of the event descriptor</param>>
5391         /// <param name="eventParam0">A parameter of the ETW event</param>>
5392         /// <param name="eventParam1">A parameter of the ETW event</param>>
5393         /// <param name="eventParam2">A parameter of the ETW event</param>>
5394         /// <param name="eventParam3">A parameter of the ETW event</param>>
5395         // Critical = Calls SecurityCritical method EtwProvider.WriteEvent
5396         // Safe = We only allow setting of provider id from SecurityCritical code, access to EventDescriptors is SecurityCritical, and ETW limits buffer sizes.
5397         [System.Security.SecuritySafeCriticalAttribute()]
WriteEtwTransferEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3)5398         static bool WriteEtwTransferEvent(int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, System.Guid eventParam1, string eventParam2, string eventParam3)
5399         {
5400             EnsureEventDescriptors();
5401             return FxTrace.Trace.EtwProvider.WriteTransferEvent(ref eventDescriptors[eventIndex], eventParam0, eventParam1, eventParam2, eventParam3);
5402         }
5403 
5404         /// <summary>
5405         /// write a trace source into the diagnostic trace
5406         /// </summary>
5407         /// <param name="eventIndex">The index of the event descriptor</param>
5408         /// <param name="description">The description to write</param>
5409         /// <param name="payload">The trace payload</param>
5410         // Critical = Calls SecurityCritical method EtwDiagnosticTrace.WriteTraceSource
5411         // Safe = We only allow setting of provider id from SecurityCritical code
5412         [System.Security.SecuritySafeCriticalAttribute()]
WriteTraceSource(int eventIndex, string description, TracePayload payload)5413         static void WriteTraceSource(int eventIndex, string description, TracePayload payload)
5414         {
5415             EnsureEventDescriptors();
5416             FxTrace.Trace.WriteTraceSource(ref eventDescriptors[eventIndex], description, payload);
5417         }
5418     }
5419 }
5420 
5421