单项选择题
A. Insert the following line at line 22: throw;
B. Insert the following line at line 09: [ServiceBehavior(TransactionAutoCompleteOnSessionClose=false)]
C. Replace line 12 with the following line: [OperationBehavior(TransactionScopeRequired=true, TransactionAutoComplete= false)]
D. Insert the following line at line 09.: [ServiceBehavior(TransactionAutoCompleteOnSessionClose=true)]
单项选择题 You are developing a Windows Communication Foundation (WCF) service that must be discoverable.You need to ensure that the ServiceHost instance supports multiple discovery versions. What should you do?()
单项选择题 You are developing a Windows Communication Foundation (WCF) service. You establish that the largest size of valid messages is 8,000 bytes. You notice that many malformed messages are being transmitted.Detailed information about whether each message is malformed must be logged.You need to ensure that this information is saved in XML format so that it can be easily analyzed. What should you add to the service configuration file?()
单项选择题 You are developing a new version of an existing message contract named CustomerDetailsVersion1. The new version of the message contract must add a Department field of type String to the SOAP header.You create a new class named CustomerDetailsVersion2 that inherits from CustomerDetailsVersion1. You need to ensure that all client applications can consume the service. Which code segment should you use?()