Microsoft
70-513 · Question #168
You are creating a Window s Communication Foundation (WCF) service application. The application needs to service many clients and requests simultaneously. The application also needs to ensure…
The correct answer is C. [ServiceBehavior(InstanceContextMode = lnstanceContextMode.PerSession. See the full explanation below for the reasoning.
Question
You are creating a Window s Communication Foundation (WCF) service application. The application needs to service many clients and requests simultaneously. The application also needs to ensure subsequent individual client requests provide a stateful conversation. You need to configure the service to support these requirements. Which attribute should you add to the class that is implementing the service?
Options
- A[ServiceBehavior(lnstanceContextMode = lnstanceContextMode.PerSession,
- B[ServiceBehavior(lnstanceContextMode = lnstanceContextMode.PerCall,
- C[ServiceBehavior(InstanceContextMode = lnstanceContextMode.PerSession,
- D[ServiceBehavior(lnstanceContextMode = lnstanceContextMode.PerCall,
How the community answered
(51 responses)- A4% (2)
- B2% (1)
- C80% (41)
- D14% (7)
Community Discussion
No community discussion yet for this question.