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

For types with more than 2 base types ProxyHelper.DiscoverMethods generates non-unique methods list #19

Closed sashaozz closed 10 years ago

sashaozz commented 10 years ago

For example we have

IBaseBaseInterface{ void BaseBaseMethod();}
IBaseInterface : IBaseBaseInterface {void BaseMethod();}
and 
IInterface : IBaseInterface { void Method(); }

For this interface ESP will throw an exception of type 'System.TypeLoadException'

Additional information: Method '_BaseBaseMethod' is overriding a method that has been overridden.

Probably you have to add Distinct() when returning methods list from ProxyHelper.DiscoverMethods

jonwagner commented 10 years ago

That should be an easy fix.

jonwagner commented 10 years ago

Fixed in the latest code. I'm going to take a look at the other outstanding issue, then I'll do a build.

sashaozz commented 10 years ago

Great! Thank You!

jonwagner commented 10 years ago

This is fixed in v3.0.1. Available on nuget now.