© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
58 replies
volvic

❔ Create a HostedService using BackgroundService to listen to requests

Hello, I am currently trying to build a BankAccount project and I wrote my business logic.
My next step is to create a service and host it so it can listen to clients request (Create account, Deposit) and do the work.

As I understand is in my Worker class I need to write a code which will listen for requests in the ExecuteAsync method, but I can't figure it out how.
I did once using grpc to listen for requests with a host and port server but I wish to explore other methods.

How to manage to create a service handling my business logic and waiting for requests ?

Any links/hints would be very helpful
image.png
image.png
image.png
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

❔ How to restart a BackgroundService
C#CC# / help
3y ago
BackgroundService Question
C#CC# / help
11mo ago
❔ Windows BackgroundService
C#CC# / help
3y ago
HostedService stopping infinitely
C#CC# / help
2y ago