title: Dynamically generate @ServiceHost directive / Dynamic SVC files
body: <p>I am using Castle Windsor's WCF facility to host my services.
  This means that my .svc files only contain this one line:</p>
  
  <pre><code>&lt;%@ ServiceHost Service="MyService" Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory, Castle.Facilities.WcfIntegration"%&gt;
  </code></pre>
  
  <p>Now instead of having 10 .svc files for 10 services, I thought it would be nice to have just one generic file.</p>
  
  <p>Something like <code>Generic.svc?service=MyService</code> that would automatically generate the correct <code>@ServiceHost</code> directive, maybe with URL rewriting in addition, so that I could write <code>MyService.svc</code>, but it would get rewritten to <code>Generic.svc</code>.</p>
  
  <p>Any thoughts on this?
  I don't want to move away from IIS and host the services myself.</p>
  
  <p>Thanks!</p>