Multiple choice technology web technology

Which property controls the instance lifetime?

  1. SerivceTypeAttribute

  2. ServiceAttribute

  3. ServiceBehaviourAttribute

  4. ServiceTypeBehaviour

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

ServiceBehaviorAttribute in WCF controls service instance lifetime through the InstanceContextMode property. This property determines whether a single instance serves all clients (Single), each client gets its own instance (PerSession), or each call gets a new instance (PerCall).