Developing Microsoft Azure and Web Services — Question 51
You are developing a WCF service.
A new service instance must be created for each client session.
You need to choose an instancing mode.
Which instance mode should you use?
Answer options
- A. PerCall
- B. Single
- C. Multiple
- D. PerSession
- E. PerRequest D
Correct answer:
Explanation
The correct answer is D. PerSession, as it ensures that a new service instance is created for each client session, allowing for stateful communication. Other options like PerCall and Single do not provide the required session-specific instances, while Multiple does not directly relate to session management.