Search code examples
wcfweb-servicesnaming-conventionssvc

What is the correct name for an SVC file in WCF


I'm struggling to come up with the correct naming convention for SVC files (or a group of SVC files). I always call them just that.

IMyService.cs goes in MyProject.Contracts dll assembly

MyService.cs goes in MyProject.Services dll assembly

MyService.svc goes in MyProject.???? web application assembly

What's the correct naming convention here. I'm having a complete monday-brain about it and can't get the term facade out of my head which I know is wrong.


Solution

  • Technically, an svc file represents a service host (hence the @ServiceHost directive it contains).

    So, maybe MyProject.Hosting or MyProject.ServiceHosts would be appropriate.