© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
51 replies
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 run
myhostedservice add -n "Foo"
myhostedservice add -n "Bar"

myhostedservice add
myhostedservice add
would in this case access the currently running hosted service and add some new data to it or whatever.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

ServiceFabric DataContract exception serialization and ServiceProxy.Create
C#CC# / help
2y ago
✅ Hosted Service running as Windows Service
C#CC# / help
2y ago
Ui in a console app
C#CC# / help
2y ago