How do I design a .NET (C#) for a program that needs to run as a Windows service but also have a web
- by hjoelr
I am designing a piece of software that needs to operate different pieces of hardware based mainly on a schedule but it also needs to have a web interface for configuring settings, configuring the schedule, and possibly even manually controlling the hardware. I'm not sure how to design the architecture of software like this.
One thought that I have had was to create a Windows service that does the communication with the hardware as well as "publishing" web services through WCF and then having an ASP.NET application that then controls the Windows service through WCF. This approach seems to be a lot of work for what I'm trying to accomplish.
Could someone please give me some direction whether or not this is a good approach, and even give me a better way to do it if one exists?
Thanks!
Joel