Home How to trigger or Run a method inside running exe file in C#
Reply: 2

How to trigger or Run a method inside running exe file in C#

Nurlan
1#
Nurlan Published in 2018-01-12 12:14:54Z

I have a list of the client on the web app at the same time there is an executable program running each client machine.I want to add a button to my web application and when the button has clicked a method inside an executable program must run and program call the user phone number.

SANM2009
2#
SANM2009 Reply to 2018-01-12 12:37:43Z

Your web app can add a value in the registry. On your windows app you set a function in a timer that checks for that value and triggers the desired action.

My bad about the registry as web app will not have access to it. Use cookies instead.

Guilherme de Jesus Santos
3#
Guilherme de Jesus Santos Reply to 2018-01-12 12:35:56Z

You could use SignalR for this.

SignalR give you

the ability to have your server-side code push content to the connected clients as it happens

The same way someone create a chat desktop app, you could create a app that wait for a message in a site, then trigger an execution of your executable program.

Example how to create a Desktop Application

https://www.codeproject.com/Articles/804770/Implementing-SignalR-in-Desktop-Applications

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.334703 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO