84 references to SessionMode
System.ServiceModel (54)
System\ServiceModel\Activation\IConnectionRegister.cs (2)
12
[ServiceContract(SessionMode =
SessionMode
.Required, CallbackContract = typeof(IConnectionDuplicator))]
26
[ServiceContract(SessionMode =
SessionMode
.Required, CallbackContract = typeof(IConnectionDuplicator))]
System\ServiceModel\Channels\ChannelRequirements.cs (16)
19
public
SessionMode
sessionMode;
67
case
SessionMode
.Allowed:
73
case
SessionMode
.Required:
78
case
SessionMode
.NotAllowed:
88
case
SessionMode
.Allowed:
96
case
SessionMode
.Required:
102
case
SessionMode
.NotAllowed:
113
case
SessionMode
.Allowed:
123
case
SessionMode
.Required:
130
case
SessionMode
.NotAllowed:
142
case
SessionMode
.Allowed:
150
case
SessionMode
.Required:
156
case
SessionMode
.NotAllowed:
167
case
SessionMode
.Allowed:
177
case
SessionMode
.Required:
184
case
SessionMode
.NotAllowed:
System\ServiceModel\Channels\ContextBindingElement.cs (1)
313
&& endpoint.Contract.SessionMode !=
SessionMode
.NotAllowed)
System\ServiceModel\Channels\MsmqBindingElementBase.cs (2)
335
if (context.Contract.SessionMode ==
SessionMode
.Required)
383
policyContext.Contract.SessionMode =
SessionMode
.Required;
System\ServiceModel\Channels\PeerServiceMessageContracts.cs (3)
134
SessionMode =
SessionMode
.Required,
172
SessionMode =
SessionMode
.Required,
180
SessionMode =
SessionMode
.Required,
System\ServiceModel\ComIntegration\ComPlusServiceLoader.cs (1)
100
if (endpoint.Contract.SessionMode ==
SessionMode
.Required)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (2)
80
contract.SessionMode = contractConfigElement.RequiresSession ?
SessionMode
.Required :
SessionMode
.Allowed;
System\ServiceModel\Description\ContractDescription.cs (4)
24
SessionMode
sessionMode;
126
[DefaultValue(
SessionMode
.Allowed)]
127
public
SessionMode
SessionMode
231
&& (this.SessionMode !=
SessionMode
.Required))
System\ServiceModel\Description\DispatcherBuilder.cs (2)
270
if (contract.SessionMode ==
SessionMode
.Required)
274
if (contract.SessionMode ==
SessionMode
.NotAllowed)
System\ServiceModel\Description\ServiceContractGenerator.cs (4)
424
if (context.Contract.SessionMode !=
SessionMode
.Allowed)
428
new CodeTypeReferenceExpression(typeof(
SessionMode
)), context.Contract.SessionMode.ToString())));
457
if ((operationDescription.DeclaringContract.SessionMode ==
SessionMode
.Required) && operationDescription.IsTerminating)
461
if ((operationDescription.DeclaringContract.SessionMode ==
SessionMode
.Required) && !operationDescription.IsInitiating)
System\ServiceModel\Description\TransactedBatchingBehavior.cs (2)
66
if (serviceEndpoint.Contract.SessionMode ==
SessionMode
.Required)
72
if (serviceEndpoint.Contract.SessionMode ==
SessionMode
.Required)
System\ServiceModel\Description\TypeLoader.cs (2)
187
contract.SessionMode =
SessionMode
.NotAllowed;
202
contract.SessionMode =
SessionMode
.NotAllowed;
System\ServiceModel\Description\WsdlExporter.cs (3)
1108
if (contract.SessionMode ==
SessionMode
.Required)
1112
else if (contract.SessionMode ==
SessionMode
.NotAllowed)
1128
if (contract.SessionMode ==
SessionMode
.Required)
System\ServiceModel\Description\WsdlImporter.cs (2)
1288
contractDescription.SessionMode =
SessionMode
.Required;
1292
contractDescription.SessionMode =
SessionMode
.NotAllowed;
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (1)
338
return endpoint.Contract.SessionMode ==
SessionMode
.Required;
System\ServiceModel\PeerResolvers\IPeerResolverContract.cs (1)
15
SessionMode =
SessionMode
.Allowed)]
System\ServiceModel\ServiceContractAttribute.cs (2)
22
SessionMode
sessionMode;
93
public
SessionMode
SessionMode
System\ServiceModel\SessionMode.cs (4)
18
public static bool IsDefined(
SessionMode
sessionMode)
20
return (sessionMode ==
SessionMode
.NotAllowed ||
21
sessionMode ==
SessionMode
.Allowed ||
22
sessionMode ==
SessionMode
.Required);
System.ServiceModel.Activities (4)
System\ServiceModel\Activities\ContractInferenceHelper.cs (4)
97
SessionMode =
SessionMode
.Allowed
114
SessionMode =
SessionMode
.Allowed
140
SessionMode =
SessionMode
.Allowed
198
SessionMode =
SessionMode
.Allowed
System.ServiceModel.Routing (7)
System\ServiceModel\Routing\IDuplexRouterCallback.cs (1)
11
[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode =
SessionMode
.Allowed)]
System\ServiceModel\Routing\IDuplexSessionRouter.cs (1)
11
[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode =
SessionMode
.Required, CallbackContract = typeof(IDuplexRouterCallback))]
System\ServiceModel\Routing\IRequestReplyRouter.cs (1)
11
[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode =
SessionMode
.Allowed)]
System\ServiceModel\Routing\ISimplexDatagramRouter.cs (1)
11
[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode =
SessionMode
.Allowed)]
System\ServiceModel\Routing\ISimplexSessionRouter.cs (1)
11
[ServiceContract(Namespace = RoutingUtilities.RoutingNamespace, SessionMode =
SessionMode
.Required)]
System\ServiceModel\Routing\RoutingBehavior.cs (2)
100
if (description.SessionMode ==
SessionMode
.Required)
269
if (dispatchOperation.IsOneWay && contract.SessionMode ==
SessionMode
.Required)
System.WorkflowServices (19)
System\ServiceModel\Description\DurableOperationAttribute.cs (1)
107
operationDescription.DeclaringContract.SessionMode !=
SessionMode
.NotAllowed);
System\ServiceModel\Description\DurableServiceAttribute.cs (3)
166
if (serviceEndPoint.Contract.SessionMode !=
SessionMode
.NotAllowed)
264
if (serviceEndpoint.Contract.SessionMode !=
SessionMode
.NotAllowed)
279
if (serviceEndpoint.Contract.SessionMode ==
SessionMode
.NotAllowed)
System\ServiceModel\Description\WorkflowServiceBehavior.cs (2)
329
if (serviceEndPoint.Contract.SessionMode !=
SessionMode
.NotAllowed)
391
if (contract.SessionMode ==
SessionMode
.Required)
System\ServiceModel\Dispatcher\DurableMessageDispatchInspector.cs (4)
12
SessionMode
sessionMode;
14
public DurableMessageDispatchInspector(
SessionMode
sessionMode)
40
if (sessionMode !=
SessionMode
.NotAllowed)
60
if (sessionMode ==
SessionMode
.NotAllowed || reply.Properties.ContainsKey(suppressContextOnReply))
System\Workflow\Activities\ServiceOperationHelpers.cs (5)
200
internal static
SessionMode
GetContractSessionMode(IServiceProvider serviceProvider, AttributeInfo attribInfo)
203
SessionMode
sessionMode =
SessionMode
.Allowed;
204
if (!TryGetArgumentValueAs<
SessionMode
>(serviceProvider, attribInfo, propertyName, out sessionMode))
206
sessionMode =
SessionMode
.Allowed;
System\Workflow\Activities\ValidationHelper.cs (3)
1036
SessionMode
contractSessionMode =
SessionMode
.Allowed;
1052
contractSessionMode !=
SessionMode
.NotAllowed)
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (1)
292
this.isSessionless = (ContractDescription.GetContract(contractType).SessionMode ==
SessionMode
.NotAllowed);