nerdexam
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)
  • A
    4% (2)
  • B
    2% (1)
  • C
    80% (41)
  • D
    14% (7)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice