Search code examples
.netwcfc#-4.0servicebehavior

Default InstanceContextMode in WCF


In WCF, if we don't specify the InstanceContextMode of the ServiceBehaviour specifically, what is the default mode of the following?

  1. PerCall
  2. PerSession
  3. Single

Thanks.


Solution

  • The documentation on it talks about default value is PerSession. But I believe it also depends upon the binding used (does binding support sessions), like basichttpbinding uses PerCall