jonwagner / EventSourceProxy

EventSourceProxy (ESP) is the easiest way to add scalable Event Tracing for Windows (ETW) logging to your .NET program
Other
97 stars 20 forks source link

ParameterProvider maps subclass properties #17

Closed codethug closed 10 years ago

codethug commented 10 years ago

Prior to this commit, if you create a TraceParameterProvider that maps properties for a base class, then create an Interface for an EventSource that has a method with a parameter that is a subclass of that base class, an exception would be thrown.

This is because ParameterBuilder.Matches would allow for a subclass to match, but the ParameterDefinition constructor would not.

This update changes the ParameterDefinition constructor to allow subclasses to match a base class.

A test is included to demonstrate the problem.

jonwagner commented 10 years ago

Thanks!