Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shared storage between C# console application and ASP.NET WebForms application

There are some C# console applications that started by Windows scheduler.
How can I gather work progress from any of them (using internal data available only in concrete console application)?

In other words, I want to show some data from running console application on my asp.net webforms website.

How can i do this?

like image 930
ilyabreev Avatar asked Oct 17 '25 22:10

ilyabreev


2 Answers

Host a http server inside the console app that the website can communicate with. I already kind of do this using self host signal r inside a tray application and it works a treat.

https://github.com/SignalR/SignalR/wiki/Self-host

like image 66
RubbleFord Avatar answered Oct 20 '25 12:10

RubbleFord


I would preferred old good .NET Remouting for this (check out simple example for it). But you can use WCF with NetNamedPipesBinding or NetTcpBinding binding.

like image 25
RredCat Avatar answered Oct 20 '25 11:10

RredCat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!