EventSourceAnalyzer.InspectAll Method

Applies to: Semantic Logging Application Block 1.0

Inspects the specified EventSource for potential runtime errors.

Namespace: Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility
Assembly: Microsoft.Practices.EnterpriseLibrary.SemanticLogging (in Microsoft.Practices.EnterpriseLibrary.SemanticLogging.dll) Version: 1.0.0.0 (1.0.1304.0)

Syntax

public static void InspectAll(
    EventSource eventSource
)
'Declaration
Public Shared Sub InspectAll ( 
    eventSource As EventSource
)
public:
static void InspectAll(
    EventSource^ eventSource
)

Parameters

  • eventSource
    Type: EventSource
    The event source instance to inspect.

Examples

EventSourceAnalyzer.InspectAll(MyEventSource.Instance);

Remarks

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

public static MyEventSource Instance = new MyEventSource();

Exceptions

Exception Condition
Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility.EventSourceAnalyzerException Exception thrown if a failure was found in the specified EventSource.
System.ArgumentException Exception thrown if a failure was found in the specified EventSource.

See Also

EventSourceAnalyzer Class

EventSourceAnalyzer Members

Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility Namespace