AppFabric v1.1 / WF4
当我在指定文本和 Tracelevel 的 CodeActivity 中创建 CustomTrackingRecord 时,AppFabric 仪表板中的 TraceLevel 始终显示为“信息”,有人可以向我解释这是为什么吗?
// Text Argument
[DefaultValue(null)]
public InArgument<string> Text { get; set; }
// TraceLevel Property
public TraceLevel TraceLevel { get; set; }
/// <summary>
/// Tracks the text message contained in the Text argument.
/// </summary>
/// <param name="context">The execution context under which the activity executes.</param>
protected override void Execute(CodeActivityContext context)
{
// Obtain the runtime value of the Text and TraceLevel input arguments
string text = context.GetValue(this.Text);
// Create and initialize a custom tracking record
CustomTrackingRecord record = new CustomTrackingRecord(text, this.TraceLevel);
// Sends the specified custom tracking record to any registered tracking providers
context.Track(record);
}
顺便说一句,我检查了 [ASStagingTable] 和 [ASWfEventsTable] 表,我的 CustomTrackingRecords 的 TraceLevelId 始终为 4。
谢谢!