/// <summary> /// Inspects the specified <see cref="EventSource" /> for potential runtime errors. /// </summary> /// <param name="eventSource">The event source instance to inspect.</param> /// <example> /// <code>EventSourceAnalyzer.InspectAll(MyEventSource.Instance);</code> /// <remarks>Where 'Instance' property returns a singleton instance of 'MyEventSource' class like: /// <code>public static MyEventSource Instance = new MyEventSource();</code> /// </remarks> /// </example> /// <exception cref="EventSourceAnalyzerException">Exception thrown if a failure was found in the specified <see cref="System.Diagnostics.Tracing.EventSource" />.</exception> /// <exception cref="ArgumentException">Exception thrown if a failure was found in the specified <see cref="System.Diagnostics.Tracing.EventSource" />.</exception> public static void InspectAll(EventSource eventSource) { var instance = new EventSourceAnalyzer(); instance.Inspect(eventSource); }
internal ProbeEventListener(EventSchema eventSchema = null, EventSourceAnalyzer analyzer = null) { this.eventSchema = eventSchema; this.analyzer = analyzer; this.TypeOrderOffset = -1; }