Please can i use datacontracts in WCF for streaming instead of message Contract.
If yes, will it offer any performance improvement?
THanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Answer depends on binding you use. For TCP or Named pipe transport protocols you can stream any data – including data contracts. If you want to use streaming over HTTP (supported by BasicHttpBinding) you have to some several constraints:
Only valid operation definitions for streaming over HTTP are:
If you don’t follow these constraints you will end up with two cases: