static private void AppendEventInfo(EventInfo @event, StringBuilder sb) { sb.Append(".event "); foreach (var attribute in @event.GetCustomAttributesData()) { AppendCustomAttributeData(attribute, sb); sb.Append(" "); } if (@event.Attributes.HasFlag(EventAttributes.SpecialName)) sb.Append("specialname "); if (@event.Attributes.HasFlag(EventAttributes.RTSpecialName)) sb.Append("rtspecialname "); AppendType(@event.EventHandlerType, sb); sb.Append(" "); sb.Append(@event.Name); }
public void EnrichEvent(IProcessingContext context, EventInfo eventInfo) { GenerateAttributeElements(context, eventInfo.GetCustomAttributesData()); }