.netwcfservicebehaviorinstancecontextmode

How many instances exists when a InstanceContextMode.Single WCF service exposes multiple endpoints?


Does the ServiceBehavior setting InstanceContextMode.Single sets a single instance regardless of the number of endpoints?


Solution

  • Yes, you will get only one instance with InstanceContextMode.Single, regardless of the number of endpoints.