Udostępnij za pośrednictwem


EventSourceAnalyzer Class

Applies to: Semantic Logging 2.0

Helper class to validate the correctness of EventSource instances. Useful in unit tests.

Namespace: Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility
Assembly: Microsoft.Practices.EnterpriseLibrary.SemanticLogging.EventSourceAnalyzer (in Microsoft.Practices.EnterpriseLibrary.SemanticLogging.EventSourceAnalyzer.dll) Version: 2.0.1406.1

Syntax

public sealed class EventSourceAnalyzer
'Declaration
Public NotInheritable Class EventSourceAnalyzer

Examples

EventSourceAnalyzer.InspectAll(MyEventSource.Instance);

Remarks

Where 'Instance' property returns a singleton instance of 'MyEventSource' class like:

public static MyEventSource Instance = new MyEventSource();

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility.EventSourceAnalyzer

See Also

EventSourceAnalyzer Members

Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility Namespace