I have to pass a huge number of some objects from my WCF service to a client. So, I configured my service to use strieamingresponse. The interface looks like:
[ServiceContract(Namespace = "http://www.xxx/SomeURI")]
public interface IHistoryRecoveryService
Stream RecieveTrades (MarketFeed feed, TradeStamp start, TradeStamp end);
But, all examples of streaming implementation are about passing some files (FileStream). Could anybody send me a link to a more complex example like my task?
I guess, I have to inherit "Stream" and implement my stream, retrieving my object from DB at calling Read.