Microsoft
70-513 · Question #253
You are developing a Windows Communication Foundation (WCF) service that executes a long running operation. The service is accessed from your business applications in a server transaction in which…
The correct answer is D. Apply OerviceBehavior (TransactlonTiitieout: = "00:00:45")> to the service implementation. See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service that executes a long running operation. The service is accessed from your business applications in a server transaction in which the client does not participate. You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?
Options
- ASet the service binding sendTimeout attribute to 00:00:45.
- BApply <OperationBehavior (TransactionScopeRequired:=False) > to the service operation.
- CSet the service binding receiveTimeout attribute to 00:00:45.
- DApply OerviceBehavior (TransactlonTiitieout: = "00:00:45")> to the service implementation.
How the community answered
(42 responses)- A14% (6)
- B5% (2)
- C5% (2)
- D76% (32)
Community Discussion
No community discussion yet for this question.