HOTSPOT
You are creating a streamed Windows Communication Foundation (WCF) service.
You implement the following service methods.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:

Explanation:
To enable streaming, define the OperationContract appropriately and enable streaming at the transport level.
To stream data, the OperationContract for the service must satisfy two requirements:
The parameter that holds the data to be streamed must be the only parameter in the method. For example,
if the input message is the one to be streamed, the operation must have exactly one input parameter.
Similarly, if the output message is to be streamed, the operation must have either exactly one output
parameter or a return value.
At least one of the types of the parameter and return value must be either Stream, Message, or
IXmlSerializable.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-enable-streaming
No Yes No Yes
0
8
sorry it should be NYNN
14
1
I Agree
7
1
According to MS explanation: At least one of the types of the parameter and return value must be either Stream, Message, or
IXmlSerializable. You can have streamed request and buffered response, streamed response and buffered request and finally both request and response streamed
I assume Method1 is streamed so as Method2. Both methods 3 and 4 are not streamed.
More details can be found at https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-enable-streaming
0
0