本文整理汇总了C#中System.Runtime.Diagnostics.EtwDiagnosticTrace类的典型用法代码示例。如果您正苦于以下问题:C# EtwDiagnosticTrace类的具体用法?C# EtwDiagnosticTrace怎么用?C# EtwDiagnosticTrace使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EtwDiagnosticTrace类属于System.Runtime.Diagnostics命名空间,在下文中一共展示了EtwDiagnosticTrace类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ActionItemScheduled
internal static void ActionItemScheduled(EtwDiagnosticTrace trace, EventTraceActivity eventTraceActivity)
{
TracePayload serializedPayload = trace.GetSerializedPayload(null, null, null);
if (TraceCore.IsEtwEventEnabled(trace, 13))
{
TraceCore.WriteEtwEvent(trace, 13, eventTraceActivity, serializedPayload.AppDomainFriendlyName);
}
}
开发者ID:nickchal,项目名称:pash,代码行数:8,代码来源:TraceCore.Designer.cs
示例2: InitializeTracing
private static EtwDiagnosticTrace InitializeTracing()
{
//Etw tracing is switched off by not enabling the session
s_etwProviderId = EtwDiagnosticTrace.DefaultEtwProviderId;
EtwDiagnosticTrace trace = new EtwDiagnosticTrace(baseEventSourceName, s_etwProviderId);
return trace;
}
开发者ID:xier2012,项目名称:wcf,代码行数:9,代码来源:FxTrace.cs
示例3: AppDomainUnload
/// <summary>
/// Gets trace definition like: AppDomain unloading. AppDomain.FriendlyName {0}, ProcessName {1}, ProcessId {2}.
/// Event description ID=57393, Level=informational, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="appdomainName">Parameter 0 for event: AppDomain unloading. AppDomain.FriendlyName {0}, ProcessName {1}, ProcessId {2}.</param>
/// <param name="processName">Parameter 1 for event: AppDomain unloading. AppDomain.FriendlyName {0}, ProcessName {1}, ProcessId {2}.</param>
/// <param name="processId">Parameter 2 for event: AppDomain unloading. AppDomain.FriendlyName {0}, ProcessName {1}, ProcessId {2}.</param>
internal static void AppDomainUnload(EtwDiagnosticTrace trace, string appdomainName, string processName, string processId)
{
TracePayload payload = trace.GetSerializedPayload(null, null, null);
if (TraceCore.IsEtwEventEnabled(trace, 0))
{
TraceCore.WriteEtwEvent(trace, 0, null, appdomainName, processName, processId, payload.AppDomainFriendlyName);
}
if (trace.ShouldTraceToTraceSource(TraceEventLevel.Informational))
{
string description = string.Format(Culture, ResourceManager.GetString("AppDomainUnload", Culture), appdomainName, processName, processId);
TraceCore.WriteTraceSource(trace, 0, description, payload);
}
}
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:21,代码来源:TraceCore.Designer.cs
示例4: ShipAssertExceptionMessage
/// <summary>
/// Gets trace definition like: An unexpected failure occurred. Applications should not attempt to handle this error. For diagnostic purposes, this English message is associated with the failure: {0}.
/// Event description ID=57395, Level=error, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="param0">Parameter 0 for event: An unexpected failure occurred. Applications should not attempt to handle this error. For diagnostic purposes, this English message is associated with the failure: {0}.</param>
internal static void ShipAssertExceptionMessage(EtwDiagnosticTrace trace, string param0)
{
WcfEventSource.Instance.ShipAssertExceptionMessage(param0);
}
开发者ID:weshaggard,项目名称:wcf,代码行数:10,代码来源:TraceCore.Designer.cs
示例5: HandledExceptionIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=57394, Level=informational, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool HandledExceptionIsEnabled(EtwDiagnosticTrace trace)
{
return WcfEventSource.Instance.HandledExceptionIsEnabled();
}
开发者ID:weshaggard,项目名称:wcf,代码行数:9,代码来源:TraceCore.Designer.cs
示例6: ActionItemCallbackInvoked
/// <summary>
/// Gets trace definition like: IO Thread scheduler callback invoked.
/// Event description ID=134, Level=verbose, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="eventTraceActivity">The event trace activity</param>
internal static void ActionItemCallbackInvoked(EtwDiagnosticTrace trace, System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity)
{
WcfEventSource.Instance.ActionItemCallbackInvoked();
}
开发者ID:weshaggard,项目名称:wcf,代码行数:10,代码来源:TraceCore.Designer.cs
示例7: ActionItemScheduledIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=133, Level=verbose, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool ActionItemScheduledIsEnabled(EtwDiagnosticTrace trace)
{
return WcfEventSource.Instance.ActionItemScheduledIsEnabled();
}
开发者ID:weshaggard,项目名称:wcf,代码行数:9,代码来源:TraceCore.Designer.cs
示例8: BufferPoolChangeQuotaIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=132, Level=verbose, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool BufferPoolChangeQuotaIsEnabled(EtwDiagnosticTrace trace)
{
return WcfEventSource.Instance.BufferPoolChangeQuotaIsEnabled();
}
开发者ID:weshaggard,项目名称:wcf,代码行数:9,代码来源:TraceCore.Designer.cs
示例9: WorkflowInstanceUnhandledExceptionRecordWithId
/// <summary>
/// Gets trace definition like: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}
/// Event description ID=118, Level=Error, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="eventTraceActivity">The event trace activity</param>
/// <param name="InstanceId">Parameter 0 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="RecordNumber">Parameter 1 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="EventTime">Parameter 2 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="ActivityDefinitionId">Parameter 3 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="SourceName">Parameter 4 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="SourceId">Parameter 5 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="SourceInstanceId">Parameter 6 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="SourceTypeName">Parameter 7 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="Exception">Parameter 8 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="Annotations">Parameter 9 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="ProfileName">Parameter 10 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="WorkflowDefinitionIdentity">Parameter 11 for event: TrackRecord = WorkflowInstanceUnhandledExceptionRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, SourceName = {4}, SourceId = {5}, SourceInstanceId = {6}, SourceTypeName={7}, Exception={8}, Annotations= {9}, ProfileName = {10}, WorkflowDefinitionIdentity = {11}</param>
/// <param name="reference">Reference (e.g. service reference) to be added to trace</param>
internal static bool WorkflowInstanceUnhandledExceptionRecordWithId(EtwDiagnosticTrace trace, System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, System.Guid InstanceId, long RecordNumber, long EventTime, string ActivityDefinitionId, string SourceName, string SourceId, string SourceInstanceId, string SourceTypeName, string Exception, string Annotations, string ProfileName, string WorkflowDefinitionIdentity, string reference)
{
bool etwTraceResult = true;
TracePayload payload = trace.GetSerializedPayload(null, null, null);
if (EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 17))
{
etwTraceResult = EtwTrackingParticipantTrackRecords.WriteEtwEvent(trace, 17, eventTraceActivity, InstanceId, RecordNumber, EventTime, ActivityDefinitionId, SourceName, SourceId, SourceInstanceId, SourceTypeName, Exception, Annotations, ProfileName, WorkflowDefinitionIdentity, reference, payload.AppDomainFriendlyName);
}
return etwTraceResult;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:29,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例10: WorkflowInstanceUnhandledExceptionRecordWithIdIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=118, Level=Error, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool WorkflowInstanceUnhandledExceptionRecordWithIdIsEnabled(EtwDiagnosticTrace trace)
{
return EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 17);
}
开发者ID:JianwenSun,项目名称:cc,代码行数:9,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例11: WorkflowInstanceSuspendedRecordWithIdIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=116, Level=Informational, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool WorkflowInstanceSuspendedRecordWithIdIsEnabled(EtwDiagnosticTrace trace)
{
return EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 15);
}
开发者ID:JianwenSun,项目名称:cc,代码行数:9,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例12: ActivityScheduledRecordIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=104, Level=Informational, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool ActivityScheduledRecordIsEnabled(EtwDiagnosticTrace trace)
{
return EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 0);
}
开发者ID:JianwenSun,项目名称:cc,代码行数:9,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例13: CustomTrackingRecordWarningIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=110, Level=Warning, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool CustomTrackingRecordWarningIsEnabled(EtwDiagnosticTrace trace)
{
return EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 7);
}
开发者ID:JianwenSun,项目名称:cc,代码行数:9,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例14: FaultPropagationRecord
/// <summary>
/// Gets trace definition like: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}
/// Event description ID=105, Level=Warning, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="eventTraceActivity">The event trace activity</param>
/// <param name="InstanceId">Parameter 0 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="RecordNumber">Parameter 1 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="EventTime">Parameter 2 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultSourceActivityName">Parameter 3 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultSourceActivityId">Parameter 4 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultSourceActivityInstanceId">Parameter 5 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultSourceActivityTypeName">Parameter 6 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultHandlerActivityName">Parameter 7 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultHandlerActivityId">Parameter 8 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultHandlerActivityInstanceId">Parameter 9 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="FaultHandlerActivityTypeName">Parameter 10 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="Fault">Parameter 11 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="IsFaultSource">Parameter 12 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="Annotations">Parameter 13 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="ProfileName">Parameter 14 for event: TrackRecord = FaultPropagationRecord, InstanceID={0}, RecordNumber={1}, EventTime={2}, FaultSourceActivityName={3}, FaultSourceActivityId={4}, FaultSourceActivityInstanceId={5}, FaultSourceActivityTypeName={6}, FaultHandlerActivityName={7}, FaultHandlerActivityId = {8}, FaultHandlerActivityInstanceId ={9}, FaultHandlerActivityTypeName={10}, Fault={11}, IsFaultSource={12}, Annotations={13}, ProfileName = {14}</param>
/// <param name="reference">Reference (e.g. service reference) to be added to trace</param>
internal static bool FaultPropagationRecord(
EtwDiagnosticTrace trace,
System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity,
System.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 etwTraceResult = true;
TracePayload payload = trace.GetSerializedPayload(null, null, null);
if (EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 4))
{
etwTraceResult = EtwTrackingParticipantTrackRecords.WriteEtwEvent(trace, 4, eventTraceActivity, InstanceId, RecordNumber, EventTime, FaultSourceActivityName, FaultSourceActivityId, FaultSourceActivityInstanceId, FaultSourceActivityTypeName, FaultHandlerActivityName, FaultHandlerActivityId, FaultHandlerActivityInstanceId, FaultHandlerActivityTypeName, Fault, IsFaultSource, Annotations, ProfileName, reference, payload.AppDomainFriendlyName);
}
return etwTraceResult;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:50,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例15: FaultPropagationRecordIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=105, Level=Warning, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool FaultPropagationRecordIsEnabled(EtwDiagnosticTrace trace)
{
return EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 4);
}
开发者ID:JianwenSun,项目名称:cc,代码行数:9,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例16: BufferPoolAllocationIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=131, Level=verbose, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool BufferPoolAllocationIsEnabled(EtwDiagnosticTrace trace)
{
return WcfEventSource.Instance.BufferPoolAllocationIsEnabled();
}
开发者ID:weshaggard,项目名称:wcf,代码行数:9,代码来源:TraceCore.Designer.cs
示例17: BufferPoolAllocation
/// <summary>
/// Gets trace definition like: Pool allocating {0} Bytes.
/// Event description ID=131, Level=verbose, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="Size">Parameter 0 for event: Pool allocating {0} Bytes.</param>
internal static void BufferPoolAllocation(EtwDiagnosticTrace trace, int Size)
{
WcfEventSource.Instance.BufferPoolAllocation(Size);
}
开发者ID:weshaggard,项目名称:wcf,代码行数:10,代码来源:TraceCore.Designer.cs
示例18: WorkflowInstanceUpdatedRecordIsEnabled
/// <summary>
/// Check if trace definition is enabled
/// Event description ID=119, Level=Informational, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
internal static bool WorkflowInstanceUpdatedRecordIsEnabled(EtwDiagnosticTrace trace)
{
return EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 18);
}
开发者ID:JianwenSun,项目名称:cc,代码行数:9,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
示例19: BufferPoolChangeQuota
/// <summary>
/// Gets trace definition like: BufferPool of size {0}, changing quota by {1}.
/// Event description ID=132, Level=verbose, Channel=Debug
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="PoolSize">Parameter 0 for event: BufferPool of size {0}, changing quota by {1}.</param>
/// <param name="Delta">Parameter 1 for event: BufferPool of size {0}, changing quota by {1}.</param>
internal static void BufferPoolChangeQuota(EtwDiagnosticTrace trace, int PoolSize, int Delta)
{
WcfEventSource.Instance.BufferPoolChangeQuota(PoolSize, Delta);
}
开发者ID:weshaggard,项目名称:wcf,代码行数:11,代码来源:TraceCore.Designer.cs
示例20: WorkflowInstanceUpdatedRecord
/// <summary>
/// Gets trace definition like: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}
/// Event description ID=119, Level=Informational, Channel=Analytic
/// </summary>
/// <param name="trace">The trace provider</param>
/// <param name="eventTraceActivity">The event trace activity</param>
/// <param name="InstanceId">Parameter 0 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="RecordNumber">Parameter 1 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="EventTime">Parameter 2 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="ActivityDefinitionId">Parameter 3 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="State">Parameter 4 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="OriginalDefinitionIdentity">Parameter 5 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="UpdatedDefinitionIdentity">Parameter 6 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="Annotations">Parameter 7 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="ProfileName">Parameter 8 for event: TrackRecord= WorkflowInstanceUpdatedRecord, InstanceID = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, State = {4}, OriginalDefinitionIdentity = {5}, UpdatedDefinitionIdentity = {6}, Annotations = {7}, ProfileName = {8}</param>
/// <param name="reference">Reference (e.g. service reference) to be added to trace</param>
internal static bool WorkflowInstanceUpdatedRecord(EtwDiagnosticTrace trace, System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, System.Guid InstanceId, long RecordNumber, long EventTime, string ActivityDefinitionId, string State, string OriginalDefinitionIdentity, string UpdatedDefinitionIdentity, string Annotations, string ProfileName, string reference)
{
bool etwTraceResult = true;
TracePayload payload = trace.GetSerializedPayload(null, null, null);
if (EtwTrackingParticipantTrackRecords.IsEtwEventEnabled(trace, 18))
{
etwTraceResult = EtwTrackingParticipantTrackRecords.WriteEtwEvent(trace, 18, eventTraceActivity, InstanceId, RecordNumber, EventTime, ActivityDefinitionId, State, OriginalDefinitionIdentity, UpdatedDefinitionIdentity, Annotations, ProfileName, reference, payload.AppDomainFriendlyName);
}
return etwTraceResult;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:26,代码来源:EtwTrackingParticipantTrackRecords.Designer.cs
注:本文中的System.Runtime.Diagnostics.EtwDiagnosticTrace类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论