Sending data from a service to action?

I want the Scheduler Background Services to run a scan method. therefore, the service will update the number of scanned files. how can I handle the fact that I closed the application schedulers by starting the service, the ui update method will fail and stop the service.

+3
source share
2 answers

According to my case

I changed the structure to allow the service to send and receive broadcasts in this action.

+3
source

See the link. This is a very good example Service. It illustrates two-way communication.

+1
source

All Articles