Question

I'm looking to have a WCF service that is self-hosted (No IIS!) Because I want to handle the data directly between to projects and not use a DB.

Basicly what i need is a service that is listening to lets say:

http:/My-Public-IP/ServiceName/MethodName/

and when a user creates and HTTP Request to that address something happens, I want to be able to catch in debug mode so lets say I have an Operation Contract Called Ping:

public string Ping()
{
 return "Ping";
}

when the user creates an HTTP REQUEST he will get to that method and so on...

My Question is what it the best design to do that, please keep in mind that this service is supposed to be accessible from all over the world, and is located on my Desktop, I know I need to open ports and stuff, but that I can Handle.

I need from you guys suggestions on how to design such A project and if you have tutorials, example,articles or any data on the subject I'll be more than thankful.

thanks in advance.

Was it helpful?

Solution

Whatever process you're using will need to create instances of the ServiceHost class. That's the core class that actually take care of recieveing, dispatching messages, instantiation of service instantes, etc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top