| Exam Code/Number: | 070-513Join the discussion |
| Exam Name: | TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4 |
| Certification: | Microsoft |
| Question Number: | 323 |
| Publish Date: | May 21, 2026 |
|
Rating
100%
|
|
You are modifying a Windows Communication Foundation (WCF) service that provides access to report generation system. The following code segment is part of your service contract. (Line numbers are included for reference only.)
Client applications are blocked while the service processes reports. You need to ensure that the service methods are asynchronous. What should you do?
A WCF service code is implemented as follows. (Line numbers are included for reference only)
01 [ServiceContract]
02 [ServiceBehavior(lnstanceContextMode =
03 lnstanceContextModeSingle)]
04 public class CalculatorService
05 {
06 [OperationContract]
07 public double Calculate(double op1, string op. double op2)
08 {
24 }
25 }
You need to increase the rate by which clients get the required response from the service.
What e two possible ways to achieve this goal? (Each correct answer presents a complete sokiion
Choose two.)
You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.
You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines.
var service = new WarehouseService();
var host = new ServiceHost(service);
You need to ensure that new operations do not wait for previous operations to finish.
Which attribute should you use to decorate the service?
You are debugging a Windows Communication Foundation (WCF) service. The service uses signed and encrypted messages.
You need to configure logging so that you can read the contents of the messages.
What should you do?
You are moving a Windows Communication Foundation (WCF) service into production.
You need to be able to monitor the health of the service. You only want to enable all performance counter instances exposed by the ServiceModelService 4.0.0.0 counter group.
Which element should you add to the system.serviceModel section in the application configuration file?