Skip to content

Interception of inherited methods (e.g. GetHashCode)  #30

Description

@orient-man

I use master on production because of #26 (thanks again) and I encountered another problem with method interceptors applied manually e.g.:

kernel.Bind<IBar>().To<Bar>().Intercept().With<MethodInterceptor>();

They intercept not only public methods of Bar, but also inherited (Equals/GetHashCode). It's not the case when interception is applied via InterceptAttribute. And it's also differs from "official" 3.0.0.8 NuGet package.

See full example here:

https://gist.github.com/orient-man/9625459

In my use case this leads to large performance penalty. I'm not sure if this change is intentional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions