internal static bool BookmarkResumptionRecord(DiagnosticTrace trace, Guid InstanceId, long RecordNumber, long EventTime, string Name, Guid SubInstanceID, string OwnerActivityName, string OwnerActivityId, string OwnerActivityInstanceId, string OwnerActivityTypeName, string Annotations, string ProfileName, string reference) { bool flag = true; TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 2)) { flag = WriteEtwEvent(trace, 2, InstanceId, RecordNumber, EventTime, Name, SubInstanceID, OwnerActivityName, OwnerActivityId, OwnerActivityInstanceId, OwnerActivityTypeName, Annotations, ProfileName, reference, payload.AppDomainFriendlyName); } return(flag); }
internal static bool CustomTrackingRecordError(DiagnosticTrace trace, Guid InstanceId, long RecordNumber, long EventTime, string Name, string ActivityName, string ActivityId, string ActivityInstanceId, string ActivityTypeName, string Data, string Annotations, string ProfileName, string reference) { bool flag = true; TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 6)) { flag = WriteEtwEvent(trace, 6, InstanceId, RecordNumber, EventTime, Name, ActivityName, ActivityId, ActivityInstanceId, ActivityTypeName, Data, Annotations, ProfileName, reference, payload.AppDomainFriendlyName); } return(flag); }
internal static bool ActivityStateRecord(DiagnosticTrace trace, Guid InstanceId, long RecordNumber, long EventTime, string State, string Name, string ActivityId, string ActivityInstanceId, string ActivityTypeName, string Arguments, string Variables, string Annotations, string ProfileName, string reference) { bool flag = true; TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 1)) { flag = WriteEtwEvent(trace, 1, InstanceId, RecordNumber, EventTime, State, Name, ActivityId, ActivityInstanceId, ActivityTypeName, Arguments, Variables, Annotations, ProfileName, reference, payload.AppDomainFriendlyName); } return(flag); }
internal static bool WorkflowInstanceUnhandledExceptionRecord(DiagnosticTrace trace, Guid InstanceId, long RecordNumber, long EventTime, string ActivityDefinitionId, string SourceName, string SourceId, string SourceInstanceId, string SourceTypeName, string Exception, string Annotations, string ProfileName, string reference) { bool flag = true; TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 10)) { flag = WriteEtwEvent(trace, 10, InstanceId, RecordNumber, EventTime, ActivityDefinitionId, SourceName, SourceId, SourceInstanceId, SourceTypeName, Exception, Annotations, ProfileName, reference, payload.AppDomainFriendlyName); } return(flag); }
internal static bool FaultPropagationRecord(DiagnosticTrace trace, Guid InstanceId, long RecordNumber, long EventTime, string FaultSourceActivityName, string FaultSourceActivityId, string FaultSourceActivityInstanceId, string FaultSourceActivityTypeName, string FaultHandlerActivityName, string FaultHandlerActivityId, string FaultHandlerActivityInstanceId, string FaultHandlerActivityTypeName, string Fault, bool IsFaultSource, string Annotations, string ProfileName, string reference) { bool flag = true; TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 4)) { flag = WriteEtwEvent(trace, 4, InstanceId, RecordNumber, EventTime, FaultSourceActivityName, FaultSourceActivityId, FaultSourceActivityInstanceId, FaultSourceActivityTypeName, FaultHandlerActivityName, FaultHandlerActivityId, FaultHandlerActivityInstanceId, FaultHandlerActivityTypeName, Fault, IsFaultSource, Annotations, ProfileName, reference, payload.AppDomainFriendlyName); } return(flag); }
internal static void HandledExceptionWarning(DiagnosticTrace trace, Exception exception) { TracePayload payload = trace.GetSerializedPayload(null, null, exception); if (IsEtwEventEnabled(trace, 11)) { WriteEtwEvent(trace, 11, payload.SerializedException, payload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Warning)) { string description = string.Format(Culture, ResourceManager.GetString("HandledExceptionWarning", Culture), new object[0]); WriteTraceSource(trace, 11, description, payload); } }
internal static void TraceCodeEventLogWarning(DiagnosticTrace trace, TraceRecord traceRecord) { TracePayload payload = trace.GetSerializedPayload(null, traceRecord, null); if (IsEtwEventEnabled(trace, 10)) { WriteEtwEvent(trace, 10, payload.ExtendedData, payload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Warning)) { string description = string.Format(Culture, ResourceManager.GetString("TraceCodeEventLogWarning", Culture), new object[0]); WriteTraceSource(trace, 10, description, payload); } }
internal static void AppDomainUnload(DiagnosticTrace trace, string param0, string param1, string param2) { TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 0)) { WriteEtwEvent(trace, 0, param0, param1, param2, payload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Informational)) { string description = string.Format(Culture, ResourceManager.GetString("AppDomainUnload", Culture), new object[] { param0, param1, param2 }); WriteTraceSource(trace, 0, description, payload); } }
internal static void ThrowingException(DiagnosticTrace trace, string param0, Exception exception) { TracePayload payload = trace.GetSerializedPayload(null, null, exception); if (IsEtwEventEnabled(trace, 3)) { WriteEtwEvent(trace, 3, param0, payload.SerializedException, payload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Error)) { string description = string.Format(Culture, ResourceManager.GetString("ThrowingException", Culture), new object[] { param0 }); WriteTraceSource(trace, 3, description, payload); } }
internal static void ShipAssertExceptionMessage(DiagnosticTrace trace, string param0) { TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 2)) { WriteEtwEvent(trace, 2, param0, payload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Error)) { string description = string.Format(Culture, ResourceManager.GetString("ShipAssertExceptionMessage", Culture), new object[] { param0 }); WriteTraceSource(trace, 2, description, payload); } }
internal static void MaxInstancesExceeded(DiagnosticTrace trace, int limit) { TracePayload payload = trace.GetSerializedPayload(null, null, null); if (IsEtwEventEnabled(trace, 5)) { WriteEtwEvent(trace, 5, limit, payload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Warning)) { string description = string.Format(Culture, ResourceManager.GetString("MaxInstancesExceeded", Culture), new object[] { limit }); WriteTraceSource(trace, 5, description, payload); } }
internal static void TraceCodeEventLogCritical(DiagnosticTrace trace, TraceRecord traceRecord) { TracePayload serializedPayload = DiagnosticTrace.GetSerializedPayload(null, traceRecord, null); if (TraceCore.IsEtwEventEnabled(trace, 6)) { TraceCore.WriteEtwEvent(trace, 6, serializedPayload.ExtendedData, serializedPayload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Critical)) { string str = string.Format(TraceCore.Culture, TraceCore.ResourceManager.GetString("TraceCodeEventLogCritical", TraceCore.Culture), new object[0]); TraceCore.WriteTraceSource(trace, 6, str, serializedPayload); } }
internal static void HandledException(DiagnosticTrace trace, Exception exception) { TracePayload serializedPayload = DiagnosticTrace.GetSerializedPayload(null, null, exception); if (TraceCore.IsEtwEventEnabled(trace, 1)) { TraceCore.WriteEtwEvent(trace, 1, serializedPayload.SerializedException, serializedPayload.AppDomainFriendlyName); } if (trace.ShouldTraceToTraceSource(TraceEventLevel.Informational)) { string str = string.Format(TraceCore.Culture, TraceCore.ResourceManager.GetString("HandledException", TraceCore.Culture), new object[0]); TraceCore.WriteTraceSource(trace, 1, str, serializedPayload); } }