Streaming an undetermined number of objects through WCF

前端 未结 3 1623
余生分开走
余生分开走 2021-02-15 18:39

I have a WCF service that needs to read large (10 to 20 million) numbers of objects from the database.

What I\'d like to do, is have the client open up a stream and ha

3条回答
  •  后悔当初
    2021-02-15 19:46

    You might want to take a look at the PollingDuplexHttpBinding (notice id did may might :-)).

    Some aren't very fond of this binding but I haven't had too much trouble with it after the initial hurdle of getting the config right.

    It could certainly do the job I think since it's little more than the 'long polling trick' used in web-sockets as I understand.

    HTH.

提交回复
热议问题