Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF data object receive progress

Tags:

c#

wcf

dto

I'm looking for a way to retrieve a collection of DTOs from my WCF data service in a way that will allow me to be informed every time a whole DTO from the collection has finished downloading, also I want to be able to read it of course.

Means, if I want to get a collection of users, every time a user from the collection is downloaded completely to the client (serializably-speaking), I want the client-side to be notified and be able to read it.

Is it at all possible?

Thanks!

Edit: Is passing a callback from the client to the server, which the server will use to send the client each user through iteration, a possible/correct direction? Or is there a better solution?

like image 954
Captain Avatar asked Feb 12 '26 22:02

Captain


1 Answers

You’ll probably have to split it into multiple requests in order to do this. For example, one request to retrieve the size of the collection, and then a separate request for each item in the collection. Then you know when each item completes. (If you do this, you can even parallelise the whole thing.)

like image 88
Timwi Avatar answered Feb 14 '26 14:02

Timwi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!