本文介绍了得到一个大名单< T>从WCF中块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从一个WCF服务实体的名单,我遇到的问题是,我们在网络上有一些不好的延迟等数据需要花费大量的时间去我的客户。这个想法我是找到一种方式来获得的第一个1000和刚刚推那些,而我等待下一个的人到达的用户界面。

I'm trying to get a list of entities from a WCF service, the problem I'm experiencing is that we have some bad latency on the network and so the data takes a considerable amount of time to get to my client. The idea I have is to find a way to get the first 1000 and just push those to the UI while I'm waiting for the next ones to arrive.

我猜它会像分页,但我只是想页面中的WCF层,而这全套的从DB时得到一个页面

I guess it would be like paging but I just want to page the full set in the WCF layer rather that get one page at a time from the db

干杯

推荐答案

在年底为我使用tcpTransport我沟通,我使用双面渠道做什么,我需要结束。

In the end as I'm using tcpTransport for my communication, I ended using duplex channels to do what I needed.

我所做的只是改变我被退回的大名单作废当前SearchMethod。在此方法我从数据库中,这一块让我的数据,并通过回调操作

What I did is just change my current SearchMethod that was returning a big list to void. Inside this method I get my data from the DB, chunk it and send it to the client via a callback operation

这篇关于得到一个大名单< T>从WCF中块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 02:57