Microsoft
70-513 · Question #299
You are developing a Windows Communication Foundation (WCF) service. You write a method named Submit that accepts messages of the type System.ServiceModel.Channels.Message. You need to process the…
The correct answer is B. Use the CreateBufferedCopy method of the Message class to load the messages into memory. D. Use the CreateMessage method of the MessageBuffer class to make a copy of the messages. See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service. You write a method named Submit that accepts messages of the type System.ServiceModel.Channels.Message. You need to process the body of the incoming messages multiple times in the method. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Options
- AUse the GetBody method of the Message class to read the content of the messages.
- BUse the CreateBufferedCopy method of the Message class to load the messages into memory.
- CUse the WriteBodyContents method of the BodyWriter class to make a copy of the messages.
- DUse the CreateMessage method of the MessageBuffer class to make a copy of the messages.
How the community answered
(28 responses)- A7% (2)
- B86% (24)
- C7% (2)
Community Discussion
No community discussion yet for this question.