adspace


How to set the instancing mode in wcf service?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different elements of wcf srevices client configuration file?

906