title: Castle Windsor Interception on registered Classes instead of Components
body: <p>I am just learning Castle Windsor and was trying to use AOP to solve a few issues and wanted to use the Interception feature to accomplish this.</p>
  
  <p>I have figured out how to get it to work with single components by doing the following.</p>
  
  <pre><code>container.Register(Component.For&lt;IInterceptor&gt;()
                  .ImplementedBy&lt;BankServiceLogger&gt;()
                  .Named("BankServiceInteceptor"));
  
              container.Register(Component.For&lt;IBankService&gt;()
                  .ImplementedBy&lt;BankService&gt;()
                  .Interceptors(InterceptorReference.ForKey("BankServiceInteceptor")).Anywhere
                  .LifestyleTransient());
  </code></pre>
  
  <p>My issue is when registering classes such as controllers as I have done here</p>
  
  <pre><code>container.Register(Classes.FromThisAssembly()
                  .BasedOn&lt;IController&gt;()                
                  .LifestyleTransient());
  </code></pre>
  
  <p>There doesn't appear to be an Interceptors use on this.</p>
  
  <p>Is there a way to do interception when registering multiple classes or do I need to register each component individually to accomplish this?</p>