c# - How to get wcf response in parts -


i have show multiple graph on windowsapplication select parameter ui. copy in request(object) , send wcf service side. based on request parameter processing , create response in list format , send client. in complete process, server takes around 18 second performing business logic , after client takes around 6 8 second show graph on ui list(graph generates each response object). here client need wait around 18 second business processing. client graph generation time saved if send data in parts instead of complete list. concern how sends response data in parts(peaces).

it's matter of wcf service doing. spends time executing business logic (which includes time connect db , execute sql) , sends out data on wire. how long take data land @ client not can influence programming.

however, if business logic takes long, indicates many operations taking place on service side in order prepare response. optimize, can divide operations on smaller ones , expose endpoint methods each one. on client side call methods subsequently , update ui appropriately between calls. way you'll receive response service faster of data.