31 references to Contract
System.ServiceModel (31)
System\ServiceModel\Channels\HttpTransportBindingElement.cs (5)
787
bool useWebSocketTransport = WebSocketHelper.UseWebSocketTransport(this.WebSocketSettings.TransportUsage, policyContext.
Contract
.IsDuplex());
833
SR.GetString(SR.HttpTransportCannotHaveMultipleAuthenticationSchemes, policyContext.
Contract
.Namespace, policyContext.
Contract
.Name)));
859
policyContext.
Contract
.Namespace,
860
policyContext.
Contract
.Name,
System\ServiceModel\Channels\MsmqBindingElementBase.cs (2)
335
if (context.
Contract
.SessionMode == SessionMode.Required)
383
policyContext.
Contract
.SessionMode = SessionMode.Required;
System\ServiceModel\Channels\SecurityBindingElement.cs (3)
2333
bindingParameters.Add(ChannelProtectionRequirements.CreateFromContract(policyContext.
Contract
, policyContext.BindingElements.Find<SecurityBindingElement>().GetIndividualProperty<ISecurityCapabilities>(), false));
2339
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
2407
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (13)
49
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
226
string contractAssociationName = String.Format("{0}:{1}:{2}", ContractProtectionLevelKey, policyContext.
Contract
.Name, policyContext.
Contract
.Namespace);
250
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
278
ValidateExistingOrSetNewProtectionLevel(message.Body.ReturnValue, message, operation, policyContext.
Contract
, newProtectionLevel);
282
ValidateExistingOrSetNewProtectionLevel(body, message, operation, policyContext.
Contract
, newProtectionLevel);
286
ValidateExistingOrSetNewProtectionLevel(null, message, operation, policyContext.
Contract
, newProtectionLevel);
320
ValidateExistingOrSetNewProtectionLevel(header, message, operation, policyContext.
Contract
, newProtectionLevel);
374
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.CannotImportProtectionLevelForContract, policyContext.
Contract
.Name, policyContext.
Contract
.Namespace)));
402
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.CannotImportProtectionLevelForContract, policyContext.
Contract
.Name, policyContext.
Contract
.Namespace)));
411
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
System\ServiceModel\Channels\TransactionFlowBindingElement.cs (1)
420
foreach (OperationDescription operation in context.
Contract
.Operations)
System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (1)
51
foreach (OperationDescription operation in context.
Contract
.Operations)
System\ServiceModel\Description\MetadataImporter.cs (1)
111
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
System\ServiceModel\Description\WsdlImporter.cs (2)
1643
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
1675
foreach (OperationDescription operation in policyContext.
Contract
.Operations)
System\ServiceModel\Security\WSSecurityPolicy.cs (3)
1328
if (policyContext.
Contract
== NullContract)
1352
bindingParameters.Add(ChannelProtectionRequirements.CreateFromContract(policyContext.
Contract
, policyContext.BindingElements.Find<SecurityBindingElement>().GetIndividualProperty<ISecurityCapabilities>(), false));
1358
foreach (OperationDescription operation in policyContext.
Contract
.Operations)