WCF chunk data with stream

HI, I want to pass the chunk data from the WCF service to the client. I have a table with 16 million records, and therefore, when the client requests data from this table, I open the datareader in this table and serialize and send each record to the client, here is my method signature.

public AsyncResult FindAsync(AsyncRequest request)

where AsyncResult and AsyncRequest are MessageContract, and AsyncResult has a stream. the problem is that when the client calls the method, my function does not return until all the data has been transferred in the stream on the server ... is it possible to change this behavior or do I need to use callbacks?

+3
source share

Source: https://habr.com/ru/post/1708197/


All Articles