Lazy, stream driven object serialization with protobuf-net
问题 We are developing a WCF service for streaming a large amount of data, therefore we have chosen to use WCF Streaming functionality combined with a protobuf-net serialization. Context: Generally an idea is to serialize objects in the service, write them into a stream and send. On the other end the caller will receive a Stream object and it can read all data. So currently the service method code looks somewhat like this: public Result TestMethod(Parameter parameter) { // Create response var