I'm working on a project where I have to trigger my windows desktop app to fetch the database for new rows once a user on the internal network send new requests.
I have managed to hack this around through several ways:
- A timer on the C# desktop app with half a second interval.
- The PHP webapp creates an XML file with the requests on the OS where the C# app is hosted then the File System Watcher class does the job.
- SOAP PHP web service and consume it in C#.
Is there a clean direct way to do this? because I don't like any of the hacks I did as it's full of bugs.