title: WCF ServiceFilter like ASP.NET MVC ActionFilter
body: <p>let's assume that the below one is our service contract;</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  using System.ServiceModel;
  
  namespace WCFSimple.Contract
  {
      [ServiceContract]
      public interface IService
      {
          [OperationContract]
          string Ping(string name);
      }
  }
  </code></pre>
  
  <p>the thing (I do not know what it is called but would appreciate if somebody could tell me) just above the <code>public interface IService</code> which is <code>[ServiceContract]</code> is giving me an idea.</p>
  
  <p>I would like to have a simple thing called ActionFilter on ASP.NET MVC. </p>
  
  <p>Can I do that on WCF? If I can, what can it give me to control there?</p>