C#C
C#4y ago
Thinker

Communicating between a console app and a hosted service?

Is there any decent way of communicating between a console application and a hosted service? For instance if I want to update some in-memory data from outside the service (eg. via a console command). Ex.
myhostedservice run
myhostedservice add -n "Foo"
myhostedservice add -n "Bar"

myhostedservice add would in this case access the currently running hosted service and add some new data to it or whatever.
Was this page helpful?