Please explain briefly different Instance Modes in WCF?

WCF will bind an incoming message request to a particular service instance, so the available modes are:
  • Per Call: instance created for each call, most efficient in term of memory but need to maintain session.
  • Per Session: Instance created for a complete session of a user. Session is maintained.
  • Single: Only one instance created for all clients/users and shared among all.Least efficient in terms of memory.

Comments

Popular posts from this blog

Explain what is the difference between View and Partial View?

List out different return types of a controller action method?

3-6 yr Experience Interview Questions in .Net Technologies