C#C
C#4y ago
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
Was this page helpful?