Jump to content
KMarb

Alexandria download service example will not run

Recommended Posts

I have some database operations that take 10-15 seconds sometimes, and so I'm researching how to create a local service to run those ops in a separate thread. The download service demo seems like a good place to learn, but it will not run on any of my devices. I will keep researching this and add notes here if I find the problem, but can someone enlighten me as to why this demo does not work?

Share this post


Link to post

Related question: TTask.Run seems like a very simple thing to implement, simpler than local service. And it looks like tasks created with TTask.Run run in a separate thread, so the UI does not get blocked.

 

In my case, where I have some time-consuming things that need to get done (sending and receiving data from back end database), does TTask.Run make more sense than a local service? The big thing I'm unsure of: if my app moves to background, will the task continue to run and complete a 10-15 second transfer?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×