使用自定义事件源时,例如:
[EventSource(Name = "MyEventSource")]
public partial class CustomEventSource : EventSource
{
}
EventSource 类上有一个 IsEnabled 方法:
EventSource.IsEnabled(eventLevel, eventKeywords)
https://msdn.microsoft.com/en-us/library/hh393402(v=vs.110).aspx
此方法如何确定事件是否为级别和关键字“启用”?似乎没有任何关于此的可靠文档。在我的实现中,该方法返回 false,我不确定需要做什么才能使其返回 true。
呼啦一阵风
大话西游666
相关分类