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?
A.
PerCall
B.
Single
C.
Multiple
D.
PerSession
E.
PerRequest
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?
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?
A.
PerCall
B.
Single
C.
Multiple
D.
PerSession
E.
PerRequest
D
https://www.codeproject.com/Articles/86007/ways-to-do-WCF-instance-management-Per-call-Per
When should you use per call, per session, and single mode?
Per call
You want a stateless services.
Your service holds intensive resources like connection objects and huge memory objects.
Scalability is a prime requirement. You would like to have a scaled out architecture.
Your WCF functions are called in a single threaded model.
Per session
You want to maintain states between WCF calls.
You a scaled up architecture.
Light resource references.
Single
You want share global data through your WCF service.
Scalability is not a concern.
https://msdn.microsoft.com/en-us/library/ms731193(v=vs.110).aspx