40 references to InstanceContextMode
SMSvcHost (1)
System\ServiceModel\Activation\WorkerProcess.cs (1)
19[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
System.Data.Services (1)
System\Data\Services\DataService.cs (1)
47[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
System.ServiceModel (32)
System\ServiceModel\Channels\PeerService.cs (1)
38InstanceContextMode = InstanceContextMode.Single,
System\ServiceModel\ComIntegration\ComPlusServiceLoader.cs (7)
58serviceBehavior.InstanceContextMode = InstanceContextMode.Single; 102if (serviceBehavior.InstanceContextMode == InstanceContextMode.PerCall) 105serviceBehavior.InstanceContextMode = InstanceContextMode.PerSession; 109if (serviceBehavior.InstanceContextMode == InstanceContextMode.PerSession) 112serviceBehavior.InstanceContextMode = InstanceContextMode.PerCall; 116if (serviceBehavior.InstanceContextMode == InstanceContextMode.Single) 117serviceBehavior.InstanceContextMode = InstanceContextMode.PerSession;
System\ServiceModel\Description\ServiceDescription.cs (2)
268if ((implementation == null) && (serviceBehavior.InstanceContextMode == InstanceContextMode.Single)) 277else if ((implementation != null) && (serviceBehavior.InstanceContextMode == InstanceContextMode.Single))
System\ServiceModel\Description\ServiceMetadataBehavior.cs (1)
307InstanceContextProviderBase.GetProviderForMode(InstanceContextMode.Single, dispatcher);
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
450dispatcher.DispatchRuntime.InstanceContextProvider = InstanceContextProviderBase.GetProviderForMode(InstanceContextMode.Single, dispatcher.DispatchRuntime);
System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
86this.instanceContextProvider = InstanceContextProviderBase.GetProviderForMode(InstanceContextMode.PerSession, this);
System\ServiceModel\Dispatcher\IInstanceContextProvider.cs (4)
46internal static IInstanceContextProvider GetProviderForMode(InstanceContextMode instanceMode, DispatchRuntime runtime) 50case InstanceContextMode.PerCall: 52case InstanceContextMode.PerSession: 54case InstanceContextMode.Single:
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (4)
164InstanceContextMode instanceMode = serviceBehavior.InstanceContextMode; 165if (instanceMode != InstanceContextMode.PerSession) 204InstanceContextMode instanceMode = serviceBehavior.InstanceContextMode; 206instanceMode != InstanceContextMode.PerSession)
System\ServiceModel\InstanceContextMode.cs (4)
16static public bool IsDefined(InstanceContextMode x) 19x == InstanceContextMode.PerCall || 20x == InstanceContextMode.PerSession || 21x == InstanceContextMode.Single ||
System\ServiceModel\PeerResolvers\CustomPeerResolverService.cs (1)
15[ServiceBehavior(UseSynchronizationContext = false, InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
System\ServiceModel\Security\WSTrustServiceContract.cs (1)
43[ServiceBehavior(Name = WSTrustServiceContractConstants.ServiceBehaviorName, Namespace = WSTrustServiceContractConstants.Namespace, InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
System\ServiceModel\ServiceBehaviorAttribute.cs (5)
29InstanceContextMode instanceMode; 175[DefaultValue(InstanceContextMode.PerSession)] 176public InstanceContextMode InstanceContextMode 442if (this.instanceMode != InstanceContextMode.Single && this.wellKnownSingleton != null) 453if ((this.instanceMode == InstanceContextMode.Single) &&
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\AnnouncementService.cs (1)
14[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\RoutingService.cs (1)
33[ServiceBehavior(AddressFilterMode = AddressFilterMode.Any, InstanceContextMode = InstanceContextMode.PerSession,
System.Web.Extensions (3)
ApplicationServices\AuthenticationService.cs (1)
26ServiceBehavior(Namespace="http://asp.net/ApplicationServices/v200", InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)
ApplicationServices\ProfileService.cs (1)
23[ServiceBehavior(Namespace="http://asp.net/ApplicationServices/v200", InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
ApplicationServices\RoleService.cs (1)
27ServiceBehavior(Namespace="http://asp.net/ApplicationServices/v200", InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)
System.WorkflowServices (1)
System\ServiceModel\Description\DurableServiceAttribute.cs (1)
234if (serviceBehavior.InstanceContextMode != InstanceContextMode.PerSession)