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)
38
InstanceContextMode =
InstanceContextMode
.Single,
System\ServiceModel\ComIntegration\ComPlusServiceLoader.cs (7)
58
serviceBehavior.InstanceContextMode =
InstanceContextMode
.Single;
102
if (serviceBehavior.InstanceContextMode ==
InstanceContextMode
.PerCall)
105
serviceBehavior.InstanceContextMode =
InstanceContextMode
.PerSession;
109
if (serviceBehavior.InstanceContextMode ==
InstanceContextMode
.PerSession)
112
serviceBehavior.InstanceContextMode =
InstanceContextMode
.PerCall;
116
if (serviceBehavior.InstanceContextMode ==
InstanceContextMode
.Single)
117
serviceBehavior.InstanceContextMode =
InstanceContextMode
.PerSession;
System\ServiceModel\Description\ServiceDescription.cs (2)
268
if ((implementation == null) && (serviceBehavior.InstanceContextMode ==
InstanceContextMode
.Single))
277
else if ((implementation != null) && (serviceBehavior.InstanceContextMode ==
InstanceContextMode
.Single))
System\ServiceModel\Description\ServiceMetadataBehavior.cs (1)
307
InstanceContextProviderBase.GetProviderForMode(
InstanceContextMode
.Single, dispatcher);
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
450
dispatcher.DispatchRuntime.InstanceContextProvider = InstanceContextProviderBase.GetProviderForMode(
InstanceContextMode
.Single, dispatcher.DispatchRuntime);
System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
86
this.instanceContextProvider = InstanceContextProviderBase.GetProviderForMode(
InstanceContextMode
.PerSession, this);
System\ServiceModel\Dispatcher\IInstanceContextProvider.cs (4)
46
internal static IInstanceContextProvider GetProviderForMode(
InstanceContextMode
instanceMode, DispatchRuntime runtime)
50
case
InstanceContextMode
.PerCall:
52
case
InstanceContextMode
.PerSession:
54
case
InstanceContextMode
.Single:
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (4)
164
InstanceContextMode
instanceMode = serviceBehavior.InstanceContextMode;
165
if (instanceMode !=
InstanceContextMode
.PerSession)
204
InstanceContextMode
instanceMode = serviceBehavior.InstanceContextMode;
206
instanceMode !=
InstanceContextMode
.PerSession)
System\ServiceModel\InstanceContextMode.cs (4)
16
static public bool IsDefined(
InstanceContextMode
x)
19
x ==
InstanceContextMode
.PerCall ||
20
x ==
InstanceContextMode
.PerSession ||
21
x ==
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)
29
InstanceContextMode
instanceMode;
175
[DefaultValue(
InstanceContextMode
.PerSession)]
176
public
InstanceContextMode
InstanceContextMode
442
if (this.instanceMode !=
InstanceContextMode
.Single && this.wellKnownSingleton != null)
453
if ((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)
26
ServiceBehavior(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)
27
ServiceBehavior(Namespace="http://asp.net/ApplicationServices/v200", InstanceContextMode =
InstanceContextMode
.Single, ConcurrencyMode = ConcurrencyMode.Multiple)
System.WorkflowServices (1)
System\ServiceModel\Description\DurableServiceAttribute.cs (1)
234
if (serviceBehavior.InstanceContextMode !=
InstanceContextMode
.PerSession)