You just need to place the wcf contract class in your service onstart method calling ServiceHost host = new ServiceHost(YourClass) and in your service's onclose method, you need to call host.close() . The hosting option depends on what type of clients you want to talk to, if you want to talk to pure html clients using REST, you need to place your service in WebServiceHost , and the binding you need to use in this case is webHttpBinding .
I followed the following example and was able to create a Windows Service Host Wcf, and I am sure that this is what you are looking for a link
I did not find a difference in creating a wcf service in vs2008 and vs2010.
What type of clients do you want to talk about and what protocols do you want to support. All this determines your configuration.
source share