74 references to Contract
dotnet-svcutil-lib (74)
CodeDomFixup\ConfigToCode.cs (3)
37if (contractName.EndsWith(endpoint.Contract.Name, StringComparison.Ordinal) || contractName.EndsWith(UniqueCodeIdentifierScope.MakeValid(endpoint.Contract.CodeName, endpoint.Contract.CodeName), StringComparison.Ordinal))
CodeDomFixup\MetadataFixup.cs (2)
50if (endpoint.Contract != null) 51yield return endpoint.Contract;
FrameworkFork\System.ServiceModel\System\ServiceModel\CallbackBehaviorAttribute.cs (2)
41if (!serviceEndpoint.Contract.IsDuplex()) 44string.Format(SRServiceModel.SFxCallbackBehaviorAttributeOnlyOnDuplex, serviceEndpoint.Contract.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (7)
209OperationDescriptionCollection operations = this.Endpoint.Contract.Operations; 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxCreateNonDuplexChannel1, this.Endpoint.Contract.Name))); 586if (endpoint.Contract.CallbackContractType == null) 588throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 595if (endpoint.Contract.CallbackContractType == null) 597throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 613endpoint.Contract.Behaviors.Add(contractBehavior);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
116ContractDescription contractDescription = serviceEndpoint.Contract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (8)
21ContractDescription contractDescription = serviceEndpoint.Contract; 100foreach (IContractBehavior icb in endpoint.Contract.Behaviors) 102icb.AddBindingParameters(endpoint.Contract, endpoint, parameters); 108foreach (OperationDescription op in endpoint.Contract.Operations) 187ContractDescription contractDescription = serviceEndpoint.Contract; 283if (serviceEndpoint.Contract.IsDuplex()) 376requirements.Add(ChannelProtectionRequirements.CreateFromContractAndUnionResponseProtectionRequirements(endpoint.Contract, isc, _isForClient)); 380requirements.Add(ChannelProtectionRequirements.CreateFromContract(endpoint.Contract, isc, _isForClient));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (1)
49foreach (OperationDescription operationDescription in endpoint.Contract.Operations)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
89return importer.KnownContracts.ContainsValue(endpointContext.Endpoint.Contract);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyConversionContext.cs (1)
21_contract = endpoint.Contract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpoint.cs (6)
105return String.Format(CultureInfo.InvariantCulture, "{0}_{1}", new XmlName(Binding.Name).EncodedName, Contract.Name); 109return Contract.Name; 191if (Contract == null) 195this.Contract.EnsureInvariants(); 196this.Binding.EnsureInvariants(this.Contract.Name); 220ContractDescription contract = this.Contract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpointCollection.cs (9)
25if (endpoint != null && endpoint.Contract.ContractType == contractType) 43if (endpoint != null && endpoint.Contract.Name == contractName.Name && endpoint.Contract.Namespace == contractName.Namespace) 65if (endpoint != null && endpoint.Contract.ContractType == contractType && 89if (endpoint != null && endpoint.Contract.Name == contractName.Name && 90endpoint.Contract.Namespace == contractName.Namespace && 130if (endpoint != null && endpoint.Contract.ContractType == contractType) 150if (endpoint != null && endpoint.Contract.Name == contractName.Name && endpoint.Contract.Namespace == contractName.Namespace)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (5)
583if (serviceEndpoint.Contract.IsDuplex()) 608serviceEndpoint.Contract.Behaviors.Add(behaviorAttribute); 610Type targetIface = serviceEndpoint.Contract.CallbackContractType; 611for (int i = 0; i < serviceEndpoint.Contract.Operations.Count; i++) 613OperationDescription opDesc = serviceEndpoint.Contract.Operations[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlEndpointConversionContext.cs (2)
72foreach (IWsdlExportExtension extension in _endpoint.Contract.Behaviors.FindAll<IWsdlExportExtension>()) 77foreach (OperationDescription operation in _endpoint.Contract.Operations)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (12)
157this.ExportContract(endpoint.Contract); 161WsdlContractConversionContext contractContext = _exportedContracts[endpoint.Contract]; 180foreach (OperationDescription operation in endpoint.Contract.Operations) 187WsdlNS.OperationBinding wsdlOperationBinding = CreateWsdlOperationBinding(endpoint.Contract, operation); 219_exportedBindings.Add(new BindingDictionaryKey(endpoint.Contract, endpoint.Binding), endpointContext); 223endpointContext = new WsdlEndpointConversionContext(_exportedBindings[new BindingDictionaryKey(endpoint.Contract, endpoint.Binding)], endpoint, wsdlPort); 229Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.WarnDuplicateBindingQNameNameOnExport, endpoint.Binding.Name, endpoint.Binding.Namespace, endpoint.Contract.Name), true /*isWarning*/)); 316if (!_exportedBindings.TryGetValue(new BindingDictionaryKey(endpoint.Contract, endpoint.Binding), out bindingConversionContext)) 324WsdlNS.PortType wsdlPortType = _exportedContracts[endpoint.Contract].WsdlPortType; 744foreach (OperationDescription operation in endpoint.Contract.Operations) 1216endpoint.Contract.Name, 1217endpoint.Contract.Namespace,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (4)
460endpoint = new ServiceEndpoint(bindingEndpointContext.Endpoint.Contract); 842operation = FindOperationDescription(endpointContext.Endpoint.Contract, wsdlOperationBinding); 2205policyAlternatives.OperationBindingAlternatives = new Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>>(endpointContext.Endpoint.Contract.Operations.Count); 2209foreach (OperationDescription operation in endpointContext.Endpoint.Contract.Operations)
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (2)
230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxCreateDuplexChannel1, this.Endpoint.Contract.Name))); 234Type callbackType = this.Endpoint.Contract.CallbackContractType;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2998ContractDescription contract = endpoint.Contract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrustDec2005.cs (1)
115SetProtectionLevelForFederation(result.Endpoint.Contract.Operations);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrustFeb2005.cs (1)
211SetProtectionLevelForFederation(result.Endpoint.Contract.Operations);
ImportModule.cs (2)
69if (!httpBindingTracker.IsHttpBindingContract(contractDescription) || serviceDescriptor.Endpoints.Any(endpoint => endpoint.Contract == contractDescription)) 390_bindingContractMapping.Add(context.Endpoint.Binding, context.Endpoint.Contract);
Metadata\ServiceDescriptor.cs (3)
204if (!contracts.Contains(endpoint.Contract)) 206contracts.Add(endpoint.Contract); 209orphanContracts.Remove(endpoint.Contract);