We're creating all of our Command Objects in a PCL so that they can be used by Android and iOS.
I've got a service that talks to the database, and it seems to take enough time that it's noticeable in the UI.
_userService.Save(user);
Now I tried to do something like this.
new Task(() => _userService.Save(user)).Start();
but it doesn't save the user.
I was also looking at using
ThreadPool.QueueUserWorkItem(o => _userService.Save(user));
but here I don't know if it'll work cross platform.
can anyone lend some info on the right way to run a service off the UI thread?