单项选择题
A Windows Communication Foundation (WCF) solution exposes the following contract over an HTTP connection. Function GetData() As String End Interface Existing clients are making blocking calls to GetData. Calls to GetData take five seconds to complete. You need to allow new clients to issue non-blocking calls to get the data, without breaking any existing clients. What should you do?()
A.
B.
C.Generate a proxy class with asynchronous methods and use it for the new clients.
D.Add a new endpoint to the service that uses a full-duplex binding and use it for the new clients.
相关考题
-
单项选择题
AWindowsCommunicationFoundation(WCF)servicehasacallbackcontract.Youaredevelopingaclientapplicationthatwillcallthisservice.YoumustensurethattheclientapplicationcaninteractwiththeWCFservice.Whatshouldyoudo?()
A. On the OperationContractAttribute, set the AsyncPattern property value to True.
B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client. For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!
C. On the client, create a proxy derived from DuplexClientBase(Of TChannel).
D. On the client, use GetCallbackChannel(Of T). -
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatimplementsoperationsinaRESTfulmanner.Youneedtoaddadeleteoperation.Youimplementthedeletemethodasfollows.stringvoidDeleteItems(stringid);YouneedtoconfigureWCFtocallthismethodwhentheclientcallstheservicewiththeHTTPDELETEoperation.Whatshouldyoudo?()
A. Add the WebInvoke(UriTemplate = "/Items/{id}",Method="DELETE") attribute to the operation.
B. Add the HttpDelete attribute to the operation.
C. Replace the string parameter with a RemovedActivityAction parameter.
D. Replace the return type with RemovedActivityAction. -
单项选择题
WindowsCommunicationFoundation(WCF)applicationusesadatacontractthathasseveraldatamembers.YouneedtheapplicationtothrowaSerializationExceptionifanyofthedatamembersarenotpresentwhenaserializedinstanceofthedatacontractisdeserialized.Whatshouldyoudo?()
A. Add the Known Type attribute to the data contract.Set a default value in each of the data member declarations.
B. Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.
C. Set the Emit Default Value property of each data member to false.
D. Set the Is Required property of each data member to true.
