Which instancing mode should you use?

You are developing a WCF service.
A new service instance must be created for each client request.
You need to choose an instancing mode.
Which instancing mode should you use?

You are developing a WCF service.
A new service instance must be created for each client request.
You need to choose an instancing mode.
Which instancing mode should you use?

A.
Single

B.
PerRequest

C.
PerCall

D.
Multiple

E.
PerSession

Explanation:
PerCall: A new InstanceContext (and therefore service object) is created for each client request.



Leave a Reply 0

Your email address will not be published. Required fields are marked *