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