How to set the instancing mode in wcf service?



How to set the instancing mode in wcf service?..

Answer / Asit Kumar

To set the instancing mode in a WCF service, you can use the ServiceBehavior attribute. For example, to set the instancing mode to PerCall, you can use the following code: `[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WCF Interview Questions

What is msmq binding?

1 Answers  


what is the endpoint in WCF and what are the three major points in WCF?

1 Answers  


What is wcf wpf wwf in net?

1 Answers  


What are tha advantages of hosting wcf service in was?

1 Answers  


What are the endpoints in wcf?

1 Answers  


What is the difference between wcf and web services?

1 Answers  


What are contracts in wcf?

1 Answers  


Where we can host wcf services?

1 Answers  


What is the usage of datacontracts in wcf?

1 Answers  


What is overloading in wcf? How to do authentication in wcf?

1 Answers  


How we can achieve operation overloading while exposing wcf services?

1 Answers  


What are the transport schemas does WCF supports?

1 Answers  


Categories