I need help with this.
I need to perform some action on the client computer, such as reading the smart card from the card reader. To do this, I created a desktop application (WPF) that runs in the Windows notification area. On the other side, I have an asp.net application from which I need to call an action on the client machine. It is necessary to call the action from the frontend, but it may be useful to call it from the backend in the future. Could you please help me with a solution for this?
Thank you :)
I'm thinking of running a self-hosted web server in a WPF application that will receive API calls from the frontend of my web application (javascript). Maybe something like a kestrel?
EDIT:
For anyone else dealing with a similar problem. I found this great blog post that describes more options for implementing this type of web-app communication.
https://textslashplain.com/2019/08/28/browser-architecture-web-to-app-communication-overview/