103 references to Namespace
System.ServiceModel (63)
System\ServiceModel\Administration\ContractInstanceProvider.cs (1)
57contract.SetProperty(AdministrationStrings.Namespace, contractDescription.Namespace);
System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
833SR.GetString(SR.HttpTransportCannotHaveMultipleAuthenticationSchemes, policyContext.Contract.Namespace, policyContext.Contract.Name))); 859policyContext.Contract.Namespace,
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (4)
170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.CannotImportProtectionLevelForContract, contract.Name, contract.Namespace))); 226string contractAssociationName = String.Format("{0}:{1}:{2}", ContractProtectionLevelKey, policyContext.Contract.Name, policyContext.Contract.Namespace); 374throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.CannotImportProtectionLevelForContract, policyContext.Contract.Name, policyContext.Contract.Namespace))); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.CannotImportProtectionLevelForContract, policyContext.Contract.Name, policyContext.Contract.Namespace)));
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (2)
38XmlQualifiedName contractQName = new XmlQualifiedName(contract.Name, contract.Namespace); 372ComPlusMexChannelBuilderSchema record = new ComPlusMexChannelBuilderSchema(contract.Name, contract.Namespace, binding.Name, binding.Namespace, address);
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (1)
965this.contractNamespace = endpoint.Contract.Namespace;
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
216string ns = contract.Namespace;
System\ServiceModel\Description\ContractDescription.cs (1)
213if (this.Namespace == null)
System\ServiceModel\Description\DispatcherBuilder.cs (2)
87ClientRuntime clientRuntime = new ClientRuntime(contractDescription.Name, contractDescription.Namespace); 940EndpointDispatcher dispatcher = new EndpointDispatcher(address, contractDescription.Name, contractDescription.Namespace, endpoint.Id, endpoint.InternalIsSystemEndpoint(serviceDescription));
System\ServiceModel\Description\MessageContractExporter.cs (5)
441typedMessageKey = new TypedMessageKey(message.MessageType, operation.DeclaringContract.Namespace, this.GetExtensionData()); 483typedMessageKey = new TypedMessageKey(message.MessageType, operation.DeclaringContract.Namespace, GetExtensionData()); 868key.declaringContract.Namespace == this.declaringContract.Namespace) 1249reflector = new XmlSerializerOperationBehavior.Reflector(contractContext.Contract.Namespace, contractContext.Contract.ContractType);
System\ServiceModel\Description\MessageContractImporter.cs (2)
560request.Body.WrapperNamespace = operation.DeclaringContract.Namespace; 568response.Body.WrapperNamespace = operation.DeclaringContract.Namespace;
System\ServiceModel\Description\OperationGenerator.cs (1)
133this.ContractNS = context.Operation.DeclaringContract.Namespace;
System\ServiceModel\Description\ServiceContractGenerator.cs (5)
183CodeNamespace ns = this.NamespaceManager.EnsureNamespace(contractDescription.Namespace); 300UniqueCodeNamespaceScope codeNamespaceScope = new UniqueCodeNamespaceScope(parent.NamespaceManager.EnsureNamespace(contractDescription.Namespace)); 407if (NamingHelper.DefaultNamespace != context.Contract.Namespace) 408serviceContractAttr.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(context.Contract.Namespace))); 675if (fault.Namespace != context.Contract.Contract.Namespace)
System\ServiceModel\Description\ServiceEndpointCollection.cs (3)
46if (endpoint != null && endpoint.Contract.Name == contractName.Name && endpoint.Contract.Namespace == contractName.Namespace) 93endpoint.Contract.Namespace == contractName.Namespace && 153if (endpoint != null && endpoint.Contract.Name == contractName.Name && endpoint.Contract.Namespace == contractName.Namespace)
System\ServiceModel\Description\ServiceMetadataBehavior.cs (1)
398&& endpoint.Contract.Namespace == ServiceMetadataBehavior.MexContractNamespace);
System\ServiceModel\Description\ServiceReflector.cs (1)
95XmlQualifiedName contractQname = new XmlQualifiedName(contract.Name, contract.Namespace);
System\ServiceModel\Description\TypeLoader.cs (5)
922XmlQualifiedName contractQname = new XmlQualifiedName(declaringContract.Name, declaringContract.Namespace); 934FaultDescription faultDescription = CreateFaultDescription(knownFault, contractQname, declaringContract.Namespace, operationDescription.XmlName); 958string wrapperNamespace = declaringContract.Namespace; 965contractDescription.Namespace, 997contractDescription.Namespace,
System\ServiceModel\Description\WsdlExporter.cs (6)
56string warningMsg = isWildcardAction ? SR.GetString(SR.WarnSkippingOpertationWithWildcardAction, contract.Name, contract.Namespace, operation.Name) 57: SR.GetString(SR.WarnSkippingOpertationWithSessionOpenNotificationEnabled, "Action", OperationDescription.SessionOpenedAction, contract.Name, contract.Namespace, operation.Name); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.DuplicateContractQNameNameOnExport, contract.Name, contract.Namespace))); 1040return new XmlQualifiedName(contract.Name, contract.Namespace); 1204string contractIdentifier = new XmlQualifiedName(contract.Name, contract.Namespace).ToString(); 1219endpoint.Contract.Namespace,
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (6)
35Reflector parentReflector = new Reflector(operation.DeclaringContract.Namespace, operation.DeclaringContract.ContractType); 94Reflector reflector = new Reflector(contract.Namespace, contract.ContractType); 312keyBase = operation.DeclaringContract.Name + "," + operation.DeclaringContract.Namespace + ":"; 352get { return this.Operation.DeclaringContract.Namespace; } 469throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNameMismatchInOperation, this.Operation.Name, this.Operation.DeclaringContract.Name, this.Operation.DeclaringContract.Namespace, header.Name, headerName))); 476throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxHeaderNamespaceMismatchInOperation, this.Operation.Name, this.Operation.DeclaringContract.Name, this.Operation.DeclaringContract.Namespace, header.Namespace, headerNs)));
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (13)
214SR.GetString(SR.MoreThanOneSecurityBindingElementInTheBinding, binding.Name, binding.Namespace, contract.Name, contract.Namespace))); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.OperationDoesNotAllowImpersonation, operation.Name, endpoint.Contract.Name, endpoint.Contract.Namespace))); 321SR.GetString(SR.BindingDoesNotSupportWindowsIdenityForImpersonation, operation.Name, binding.Name, binding.Namespace, contract.Name, contract.Namespace))); 391SR.GetString(SR.CannotPerformS4UImpersonationOnPlatform, endpoint.Binding.Name, endpoint.Binding.Namespace, endpoint.Contract.Name, endpoint.Contract.Namespace))); 481throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.UnknownHeaderCannotProtected, contract.Name, contract.Namespace, header.Name, header.Namespace))); 567SR.GetString(SR.AtLeastOneContractOperationRequestRequiresProtectionLevelNotSupportedByBinding, contract.Name, contract.Namespace, binding.Name, binding.Namespace))); 572SR.GetString(SR.AtLeastOneContractOperationResponseRequiresProtectionLevelNotSupportedByBinding, contract.Name, contract.Namespace, binding.Name, binding.Namespace))); 665SR.GetString(SR.BindingDoesNotSupportProtectionForRst, binding.Name, binding.Namespace, contract.Name, contract.Namespace))); 714SR.GetString(SR.TransportDoesNotProtectMessage, binding.Name, binding.Namespace, contract.Name, contract.Namespace))); 858SR.GetString(SR.SecurityVersionDoesNotSupportEncryptedKeyBinding, binding.Name, binding.Namespace, contract.Name, contract.Namespace, SecurityVersion.WSSecurity11))); 878SR.GetString(SR.SecurityVersionDoesNotSupportThumbprintX509KeyIdentifierClause, binding.Name, binding.Namespace, contract.Name, contract.Namespace, SecurityVersion.WSSecurity11))); 916SR.GetString(SR.SecurityBindingSupportsOneWayOnly, binding.Name, binding.Namespace, contract.Name, contract.Namespace))); 1036throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotPerformImpersonationOnUsernameToken, endpoint.Binding.Name, endpoint.Binding.Namespace, endpoint.Contract.Name, endpoint.Contract.Namespace)));
System\ServiceModel\Dispatcher\UniqueContractNameValidationBehavior.cs (1)
29XmlQualifiedName qname = new XmlQualifiedName(endpoint.Contract.Name, endpoint.Contract.Namespace);
System.ServiceModel.Activities (16)
System\ServiceModel\Activities\ContractValidationHelper.cs (4)
168if (targetFault.Namespace != targetOperation.DeclaringContract.Namespace) 170Constraint.AddValidationError(context, new ValidationError(SR2.PropertyMismatch(targetOperation.DeclaringContract.Namespace, "Fault Namespace", targetFault.Namespace, targetOperation.Name, targetOperation.DeclaringContract.Name))); 312partNamespace = operation.DeclaringContract.Namespace; 465XmlQualifiedName qName = new XmlQualifiedName(name, targetOperation.DeclaringContract.Namespace);
System\ServiceModel\Activities\InternalSendMessage.cs (2)
3190c1.Namespace == c2.Namespace &&
System\ServiceModel\Activities\MessageBuilder.cs (6)
119operation.DeclaringContract.Namespace, action, direction); 160partNamespace = operation.DeclaringContract.Namespace; 194string partNamespace = operation.DeclaringContract.Namespace; 228operation.DeclaringContract.Namespace); 236message.Body.WrapperNamespace = operation.DeclaringContract.Namespace; 267Namespace = operation.DeclaringContract.Namespace,
System\ServiceModel\Activities\Receive.cs (1)
494receiveActivity.ServiceContractName = XName.Get(operation.DeclaringContract.Name, operation.DeclaringContract.Namespace);
System\ServiceModel\Activities\WorkflowService.cs (2)
366OperationIdentifier id = new OperationIdentifier(operation.DeclaringContract.Name, operation.DeclaringContract.Namespace, operation.Name); 518TD.InferredContractDescription(contract.Name, contract.Namespace);
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
593XName endpointContractName = XName.Get(serviceEndpoint.Contract.Name, serviceEndpoint.Contract.Namespace);
System.ServiceModel.Discovery (8)
System\ServiceModel\Discovery\Configuration\DynamicEndpointElement.cs (1)
119new XmlQualifiedName(dynamicEndpoint.Contract.Name, dynamicEndpoint.Contract.Namespace));
System\ServiceModel\Discovery\DynamicEndpoint.cs (1)
38new XmlQualifiedName(contract.Name, contract.Namespace));
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (5)
131metadataContractName = new XmlQualifiedName(metadataContract.Name, metadataContract.Namespace); 253XmlQualifiedName defaultContractTypeName = new XmlQualifiedName(endpoint.Contract.Name, endpoint.Contract.Namespace); 273new XmlQualifiedName(endpoint.Contract.Name, endpoint.Contract.Namespace))); 307IsDiscoveryContract(endpoint.Contract.Name, endpoint.Contract.Namespace)); 331(string.CompareOrdinal(endpoint.Contract.Namespace, MetadataContractName.Namespace) == 0));
System\ServiceModel\Discovery\FindCriteria.cs (1)
406return new XmlQualifiedName(contract.Name, contract.Namespace);
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\RoutingBehavior.cs (1)
67RoutingUtilities.IsRoutingServiceNamespace(endpoint.Contract.Namespace))
System.ServiceModel.Web (11)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
102serviceData.Initialize(new WebServiceTypeData(XmlConvert.DecodeName(contract.Name), XmlConvert.DecodeName(contract.Namespace), contract.ContractType),
System\ServiceModel\Description\WebHttpBehavior.cs (5)
120this.reflector = new XmlSerializerOperationBehavior.Reflector(endpoint.Contract.Namespace, null); 173this.reflector = new XmlSerializerOperationBehavior.Reflector(endpoint.Contract.Namespace, null); 501throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.JsonFormatRequiresDataContract, od.Name, od.DeclaringContract.Name, od.DeclaringContract.Namespace))); 1072throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.JsonFormatRequiresDataContract, od.Name, od.DeclaringContract.Name, od.DeclaringContract.Namespace))); 1262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.RpcEncodedNotSupportedForNoneMessageVersion, od.Name, od.DeclaringContract.Name, od.DeclaringContract.Namespace)));
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
301EndpointDispatcher metadataEndpointDispatcher = new EndpointDispatcher(metadataAddress, metadataContract.Name, metadataContract.Namespace);
System\ServiceModel\Dispatcher\HttpStreamFormatter.cs (1)
35this.contractNs = operation.DeclaringContract.Namespace;
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (2)
32this.contractNs = operation.DeclaringContract.Namespace; 263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.JsonFormatRequiresDataContract, operation.Name, operation.DeclaringContract.Name, operation.DeclaringContract.Namespace)));
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
68throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.JsonFormatRequiresDataContract, description.Name, description.DeclaringContract.Name, description.DeclaringContract.Namespace)));
System.Web.Extensions (4)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (4)
576!String.Equals(mapping.TargetNamespace, contract.Namespace, StringComparison.Ordinal)) 583new FormatException(String.Format(CultureInfo.CurrentCulture, WCFModelStrings.ReferenceGroup_ServiceContractMappingMissMatch, mapping.TypeName, contract.Namespace, contract.Name, mapping.TargetNamespace, mapping.Name))) 587XmlQualifiedName qname = new XmlQualifiedName(contract.Name, contract.Namespace); 658GeneratedContractType generatedType = new GeneratedContractType(contract.Namespace, contract.Name, baseType, baseType);