For a simple appliance that runs on a Windows & .NET operating system, we need to create a simple configuration web interface to control it. Just like your router’s configuration page, nothing more complicated than that.
Installing IIS or any other web server should be avoided, what we need is a self supporting process within a windows service on a basic windows XP installation + .NET.
Mono compatibility is a plus.
Thanks a million
Actually the easiest way is to use the built-in WCF stuff (.Net 3.5)… To do this you create a interface for your ‘WCF’ service that contains one or more methods that return Stream:
You can define several methods and arguments and let WFC do the work, or as the example above, push everything into a single method. The resulting implementation can access the full Uri and query parameters as follows:
Now all you have to do is start up the WCF web/http self-host …
NOTE: for the above example to work on Vista/Win7 you need to grant permissions with the following command-line: