public ProfileEventListenerBase(Guid targetSourceGuid, EventLevel level, ClrRuntimeEventKeywords keywords) { // Store the arguments _targetSourceGuid = targetSourceGuid; _level = level; _keywords = (EventKeywords)(long)keywords; LoadSourceList(); }
// .ctor call after OnEventSourceCreated. https://github.com/Microsoft/ApplicationInsights-dotnet/issues/1106 // https://github.com/dotnet/corefx/blob/master/src/Common/tests/System/Diagnostics/Tracing/TestEventListener.cs#L40 public ProfileEventListenerBase(string targetSourceName, EventLevel level, ClrRuntimeEventKeywords keywords) { // Store the arguments _targetSourceName = targetSourceName; _level = level; _keywords = (EventKeywords)(long)keywords; LoadSourceList(); }