title: Ninject interception proxying class with non empty constructor via castle dynamic proxy
body: <p>I am basing most of my current implementation off the information provided here:</p>
  
  <p><a href="https://stackoverflow.com/questions/6386461/ninject-intercept-any-method-with-certain-attribute">Ninject Intercept any method with certain attribute?</a></p>
  
  <p>I use a custom planning strategy class which looks for all methods with given attributes (not ninject interceptor attributes) which will then get proxied if it matches the criteria.</p>
  
  <p>An example of usage would be:</p>
  
  <p><code>Kernel.Components.Add&lt;IPlanningStrategy, CustomPlanningStrategy&lt;LoggingAttribute, LoggerInterceptor&gt;&gt;();</code></p>
  
  <p>This would then look for any methods which have a <code>[Logging]</code> attribute and will then use the logging interceptor.</p>
  
  <p>However I am currently getting InvalidProxyConstructorArgumentsException from dynamic proxy when it is trying to proxy the methods with related attributes on. Now I remember reading that you need virtual methods, however I do not remember seeing that you HAD to have a parameterless constructor.</p>
  
  <p>All bindings are done against interfaces, and the AOP interceptors happen via attributes and the custom proxy planning class mentioned in the link above.</p>
  
  <p>So is there a way to get dynamic proxy (or the linfu version) to proxy the classes which have constructors with dependencies? (All dependencies are in the Kernel so its not like they cannot be resolved).</p>