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