title: Use Unity to intercept all calls to IMyInterface.SomeMethod
body: <p>I am trying to learn Unity Interceptors and I am having a hard go of it.</p>
  
  <p>Say I have an interface like this:</p>
  
  <pre><code>public interface IMyInterface
  {
     void SomeMethod();
  }
  </code></pre>
  
  <p>And I have an unknown number of classes that implement that interface like this:</p>
  
  <pre><code>public class SpecificClass1 : IMyInterface
  {
     public void SomeMethod()
     {
         Console.WriteLine("Method Called");
     }
  }
  </code></pre>
  
  <p>I am looking for a way to say, "for all instance of IMyInterface (I don't want to enumerate them), when SomeMethod is called run my interceptor.</p>
  
  <p>It is the Non-Enumeration of the classe that is giving me trouble.  (There are plenty of examples if you can enumerate all your classes.)</p>
  
  <p>I have read of Type Interception, but I can't seem to find out if it will do what I am looking for.</p>
  
  <p>Any Unity experts out there know how to do what I am looking for?</p>