title: Making a console application behave like a Windows application
body: <p>I have a console application, and I want it to wait till some event is raised. But it executes the code and exits:</p>
  
  <pre><code>static void Main(string[] args)
  {
      var someObjectInstance = new SomeObject();
      someObjectInstance.SomeEvent += SomeEventHandler;
  }
  
  static void SomeEventHandler()
  {
      //Some logic
  }
  </code></pre>
  
  <p>I want to make my application behave like a Windows application where </p>
  
  <pre><code>Application.Run(new Form1());
  </code></pre>
  
  <p>is called and the message loop is run.</p>
  
  <p>But I don't need neither a message loop nor any form. So it looks like overhead. Is there a more light-weight way to achieve my goal?</p>