title: WCF Service - Get to know which method is called in constructor
body: <p>is there any possibility to recognize within the constructor, which method of my service is called?</p>
  
  <p>My example:
  I want to build a service which can be paused via <code>SetPauseService(true)</code>, so that he won't do any work while paused. I don't want to check the pause flag in every method, so I'm trying to archive this in the constructor.
  My problem is, that the user has to call <code>SetPauseService(false)</code> while the service is paused to activate the service again.</p>
  
  <pre><code>[ServiceContract]
  public class MyService
  {
  
      private static bool isPaused;
  
      public MyService()
      {
          if (/*&lt;Pseudo&gt;*/ InvokedMethod != "SetPauseService" /*&lt;/Pseudo&gt;*/)
          {
              if (isPaused)
              {
                  throw new Exception("Cannot be executed, service is paused!");
              }
          }
      }
  
      [OperationContract]
      public void SetPauseService(bool status)
      {
          isPaused = status;
      }
  
      [OperationContract]
      public void DoWork()
      {
          /* ... */
      }
  }
  </code></pre>