コード例 #1
0
 internal static bool ReceiveContextFaultedIsEnabled()
 {
     if (!FxTrace.ShouldTraceWarning)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceWarningToTraceSource)
     {
         return(FxTrace.IsEventEnabled(0x23));
     }
     return(true);
 }
コード例 #2
0
 internal static bool ReceiveContextAbandonWithExceptionIsEnabled()
 {
     if (!FxTrace.ShouldTraceInformation)
     {
         return(false);
     }
     if (!FxTrace.ShouldTraceInformationToTraceSource)
     {
         return(FxTrace.IsEventEnabled(0x21));
     }
     return(true);
 }
コード例 #3
0
 private static void EnsureEventDescriptors()
 {
     if (object.ReferenceEquals(TD.eventDescriptors, null))
     {
         EventDescriptor[] eventDescriptors = new EventDescriptor[] {
             new EventDescriptor(0xd9, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xc9, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xca, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xcb, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xcc, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xcd, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xce, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xcf, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xd0, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xd1, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(210, 0, 0x12, 3, 0, 0, 0x20000000000e0004L), new EventDescriptor(0xd3, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xd4, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xd6, 0, 0x12, 4, 0, 0, 0x20000000000e0004L), new EventDescriptor(0xd7, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xd8, 0, 0x12, 4, 0, 0, 0x2000000000080004L),
             new EventDescriptor(0x1c3, 0, 0x12, 4, 0, 0, 0x2000000000080020L), new EventDescriptor(0x1c4, 0, 0x12, 3, 0, 0, 0x2000000000080020L), new EventDescriptor(0x11f8, 0, 0x13, 3, 0, 0, 0x1000000000000020L), new EventDescriptor(0x194, 0, 0x12, 4, 7, 0, 0x2000000000080000L), new EventDescriptor(0x192, 0, 0x12, 4, 1, 0, 0x2000000000080000L), new EventDescriptor(0x191, 0, 0x12, 4, 2, 0, 0x2000000000080000L), new EventDescriptor(0x193, 0, 0x12, 4, 8, 0, 0x2000000000080000L), new EventDescriptor(0xda, 0, 0x12, 4, 0, 0, 0x2000000000080004L), new EventDescriptor(0xdb, 0, 0x12, 2, 0, 0, 0x20000000000e0004L), new EventDescriptor(0xde, 0, 0x12, 3, 0, 0, 0x20000000000e0004L), new EventDescriptor(0xdf, 0, 0x12, 3, 0, 0, 0x20000000000e0004L), new EventDescriptor(0xe0, 0, 0x12, 3, 0, 0, 0x20000000000e0004L), new EventDescriptor(0xdd, 0, 0x12, 4, 0, 0, 0x20000000000a0004L), new EventDescriptor(220, 0, 0x12, 4, 0, 0, 0x20000000000a0004L), new EventDescriptor(0x1fd, 0, 20, 4, 1, 0x9c9, 0x800000000000100L), new EventDescriptor(510, 0, 20, 4, 2, 0x9c9, 0x800000000000100L),
             new EventDescriptor(0xce5, 0, 0x13, 3, 0, 0, 0x1000000000000004L), new EventDescriptor(0xce7, 0, 0x13, 4, 0, 0, 0x1000000000000004L), new EventDescriptor(0xce4, 0, 0x13, 3, 0, 0, 0x1000000000000004L), new EventDescriptor(0xce6, 0, 0x13, 3, 0, 0, 0x1000000000000004L)
         };
         FxTrace.UpdateEventDefinitions(eventDescriptors);
         TD.eventDescriptors = eventDescriptors;
     }
 }
コード例 #4
0
 internal static bool ParameterInspectorBeforeCallInvokedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(12));
 }
コード例 #5
0
 internal static bool OperationInvokedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(5));
 }
コード例 #6
0
 internal static bool ClientOperationPreparedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0));
 }
コード例 #7
0
 internal static bool StartSignpostEventIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(20));
 }
コード例 #8
0
 internal static bool ServiceExceptionIsEnabled()
 {
     return(FxTrace.ShouldTraceError && FxTrace.IsEventEnabled(0x18));
 }
コード例 #9
0
 internal static bool MessageReceivedFromTransportIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0x1c));
 }
コード例 #10
0
 internal static bool MessageLogWarningIsEnabled()
 {
     return(FxTrace.ShouldTraceWarning && FxTrace.IsEventEnabled(0x11));
 }
コード例 #11
0
 internal static bool MessageLogInfoIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0x10));
 }
コード例 #12
0
 internal static bool MessageLogEventSizeExceededIsEnabled()
 {
     return(FxTrace.ShouldTraceWarning && FxTrace.IsEventEnabled(0x12));
 }
コード例 #13
0
 private static bool IsEtwEventEnabled(int eventIndex)
 {
     EnsureEventDescriptors();
     return(FxTrace.IsEventEnabled(eventIndex));
 }
コード例 #14
0
 internal static bool FaultProviderInvokedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(7));
 }
コード例 #15
0
 internal static bool ErrorHandlerInvokedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(6));
 }
コード例 #16
0
 internal static bool ClientMessageInspectorBeforeSendInvokedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(2));
 }
コード例 #17
0
 internal static bool ClientMessageInspectorAfterReceiveInvokedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(1));
 }
コード例 #18
0
 internal static bool MessageSentToTransportIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0x1d));
 }
コード例 #19
0
 internal static bool ResumeSignpostEventIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0x13));
 }
コード例 #20
0
 internal static bool MessageThrottleAtSeventyPercentIsEnabled()
 {
     return(FxTrace.ShouldTraceWarning && FxTrace.IsEventEnabled(0x1b));
 }
コード例 #21
0
 internal static bool ClientOperationCompletedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0x17));
 }
コード例 #22
0
 internal static bool MessageThrottleExceededIsEnabled()
 {
     return(FxTrace.ShouldTraceWarning && FxTrace.IsEventEnabled(10));
 }
コード例 #23
0
 internal static bool SuspendSignpostEventIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0x16));
 }
コード例 #24
0
 internal static bool OperationFaultedIsEnabled()
 {
     return(FxTrace.ShouldTraceWarning && FxTrace.IsEventEnabled(0x1a));
 }
コード例 #25
0
 internal static bool ClientParameterInspectorAfterCallInvokedIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(3));
 }
コード例 #26
0
 internal static bool CommunicationObjectOpenStopIsEnabled()
 {
     return(FxTrace.ShouldTraceInformation && FxTrace.IsEventEnabled(0x1f));
 }