I would like to know if its possible for ninject to intercept private methods on my class. im trying to do some aop programming to dynamically inject the logging mechanism.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately, all methods to be intercepted must be
virtual[and hence notprivate].See this blog series by @Ian Davis for a flavour of what
Ninject.Extensions.Interceptionmajors in.Deeper AOP on the .NET platform is typically the realm of PostSharp, which provides hihg and low level AOP abstractions of all kinds.