2 instantiations of ServiceMetadataBehavior
System.ServiceModel (2)
System\ServiceModel\Configuration\ServiceMetadataPublishingElement.cs (1)
114
ServiceMetadataBehavior behavior = new
ServiceMetadataBehavior
();
System\ServiceModel\Security\WSTrustServiceHost.cs (1)
102
metadataBehavior = new
ServiceMetadataBehavior
();
64 references to ServiceMetadataBehavior
ComSvcConfig (4)
EndpointConfigContainer.cs (4)
66
return
ServiceMetadataBehavior
.MexContractName;
476
if (ee.Contract ==
ServiceMetadataBehavior
.MexContractName)
602
if (el.Endpoints[0].Contract ==
ServiceMetadataBehavior
.MexContractName)
654
if (serviceElement.Endpoints[0].Contract ==
ServiceMetadataBehavior
.MexContractName)
SMSvcHost (1)
System\ServiceModel\Activation\SharingService.cs (1)
131
typedServiceHost.Description.Behaviors.Remove(typeof(
ServiceMetadataBehavior
));
System.ServiceModel (48)
System\ServiceModel\Administration\ServiceInstanceProvider.cs (3)
295
else if (behavior is
ServiceMetadataBehavior
)
298
ServiceMetadataBehavior
metadataBehavior = (
ServiceMetadataBehavior
)behavior;
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
372
if (
ServiceMetadataBehavior
.MexContractName == contractTypeString)
System\ServiceModel\ComIntegration\ServiceInfo.cs (1)
184
if (endpoint.Contract ==
ServiceMetadataBehavior
.MexContractName)
System\ServiceModel\Configuration\ServiceMetadataEndpointElement.cs (2)
36
channelEndpointElement.Contract =
ServiceMetadataBehavior
.MexContractName;
45
serviceEndpointElement.Contract =
ServiceMetadataBehavior
.MexContractName;
System\ServiceModel\Configuration\ServiceMetadataPublishingElement.cs (2)
114
ServiceMetadataBehavior
behavior = new ServiceMetadataBehavior();
132
get { return typeof(
ServiceMetadataBehavior
); }
System\ServiceModel\Description\ConfigLoader.cs (1)
1412
if (contractName ==
ServiceMetadataBehavior
.MexContractName)
System\ServiceModel\Description\IMetadataExchange.cs (3)
9
[ServiceContract(ConfigurationName =
ServiceMetadataBehavior
.MexContractName, Name =
ServiceMetadataBehavior
.MexContractName, Namespace =
ServiceMetadataBehavior
.MexContractNamespace)]
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
204
if (endpoint.Name == name && endpoint.Contract ==
ServiceMetadataBehavior
.MexContractName)
System\ServiceModel\Description\ServiceAuthenticationBehavior.cs (1)
135
if (channelDispatcher != null && !
ServiceMetadataBehavior
.IsHttpGetMetadataDispatcher(description, channelDispatcher))
System\ServiceModel\Description\ServiceAuthorizationBehavior.cs (1)
203
if (channelDispatcher != null && !
ServiceMetadataBehavior
.IsHttpGetMetadataDispatcher(description, channelDispatcher))
System\ServiceModel\Description\ServiceCredentials.cs (1)
305
if (channelDispatcher != null && !
ServiceMetadataBehavior
.IsHttpGetMetadataDispatcher(description, channelDispatcher))
System\ServiceModel\Description\ServiceEndpoint.cs (1)
222
if (
ServiceMetadataBehavior
.IsMetadataEndpoint(description, this))
System\ServiceModel\Description\ServiceMetadataBehavior.cs (14)
174
return
ServiceMetadataBehavior
.mexContract;
295
if (channelDispatcher != null &&
ServiceMetadataBehavior
.IsMetadataTransferDispatcher(description, channelDispatcher))
353
if (endpointDispatcher.ContractName ==
ServiceMetadataBehavior
.MexContractName
354
&& endpointDispatcher.ContractNamespace ==
ServiceMetadataBehavior
.MexContractNamespace)
364
if (description.Behaviors != null && description.Behaviors.Find<
ServiceMetadataBehavior
>() == null)
374
if (description.Behaviors.Find<
ServiceMetadataBehavior
>() == null)
397
return (endpoint.Contract.Name ==
ServiceMetadataBehavior
.MexContractName
398
&& endpoint.Contract.Namespace ==
ServiceMetadataBehavior
.MexContractNamespace);
418
resolver.BehaviorContracts.Add(MexContractName,
ServiceMetadataBehavior
.MexContract);
424
if (
ServiceMetadataBehavior
.mexContract == null)
428
if (
ServiceMetadataBehavior
.mexContract == null)
430
ServiceMetadataBehavior
.mexContract = CreateMexContract();
451
ServiceMetadataBehavior
behavior;
456
internal MetadataExtensionInitializer(
ServiceMetadataBehavior
behavior, ServiceDescription description, ServiceHostBase host)
System\ServiceModel\Description\ServiceMetadataEndpoint.cs (1)
31
: base(
ServiceMetadataBehavior
.MexContract, binding, address)
System\ServiceModel\Description\ServiceMetadataExtension.cs (5)
30
ServiceMetadataBehavior
.MetadataExtensionInitializer initializer;
59
internal ServiceMetadataExtension(
ServiceMetadataBehavior
.MetadataExtensionInitializer initializer)
64
internal
ServiceMetadataBehavior
.MetadataExtensionInitializer Initializer
1656
<font color=""blue""><<font color=""darkred"">" + ConfigurationStrings.Endpoint + @" </font><font color=""red"">" + ConfigurationStrings.Contract + @"</font>=<font color=""black"">""</font>" +
ServiceMetadataBehavior
.MexContractName + @"<font color=""black"">"" </font><font color=""red"">" + ConfigurationStrings.Binding + @"</font>=<font color=""black"">""</font>mexHttpBinding<font color=""black"">"" </font><font color=""red"">" + ConfigurationStrings.Address + @"</font>=<font color=""black"">""</font>mex<font color=""black"">"" </font>/></font>
1669
<font color=""blue""> <<font color=""darkred"">" + ConfigurationStrings.Endpoint + @" </font><font color=""red"">" + ConfigurationStrings.Contract + @"</font>=<font color=""black"">""</font>" +
ServiceMetadataBehavior
.MexContractName + @"<font color=""black"">"" </font><font color=""red"">" + ConfigurationStrings.Binding + @"</font>=<font color=""black"">""</font>mexHttpBinding<font color=""black"">"" </font><font color=""red"">" + ConfigurationStrings.Address + @"</font>=<font color=""black"">""</font>mex<font color=""black"">"" </font>/></font>
System\ServiceModel\Security\WSTrustServiceHost.cs (3)
99
ServiceMetadataBehavior
metadataBehavior = Description.Behaviors.Find<
ServiceMetadataBehavior
>();
134
AddServiceEndpoint(
ServiceMetadataBehavior
.MexContractName, mexBinding, "mex");
System\ServiceModel\ServiceHost.cs (7)
1645
if (behaviors != null && behaviors.Contains(typeof(
ServiceMetadataBehavior
)))
1647
behaviors.Find<
ServiceMetadataBehavior
>().AddImplementedContracts(this);
2100
if (this.behaviors.Contains(typeof(
ServiceMetadataBehavior
)) &&
ServiceMetadataBehavior
.IsMetadataImplementedType(implementedContract))
2115
if (this.behaviors.Contains(typeof(
ServiceMetadataBehavior
)) &&
ServiceMetadataBehavior
.IsMetadataImplementedType(implementedContract))
2117
return
ServiceMetadataBehavior
.MexContractName;
System.ServiceModel.Activation (3)
System\ServiceModel\Activation\ApplyHostConfigurationBehavior.cs (2)
97
ServiceMetadataBehavior
metadataBehavior = service.Description.Behaviors.Find<
ServiceMetadataBehavior
>();
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (1)
149
if (
ServiceMetadataBehavior
.IsMetadataEndpoint(description, endpoint))
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\WorkflowServiceHost.cs (3)
30
static readonly XName mexContractXName = XName.Get(
ServiceMetadataBehavior
.MexContractName,
ServiceMetadataBehavior
.MexContractNamespace);
31
static readonly Type mexBehaviorType = typeof(
ServiceMetadataBehavior
);
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (1)
285
if (description.Behaviors != null && description.Behaviors.Find<
ServiceMetadataBehavior
>() == null)
System.ServiceModel.Web (2)
System\ServiceModel\Web\WebServiceHost.cs (2)
216
ServiceMetadataBehavior
smb = this.Description.Behaviors.Find<
ServiceMetadataBehavior
>();
System.WorkflowServices (2)
System\ServiceModel\WorkflowServiceHost.cs (2)
122
if (
ServiceMetadataBehavior
.IsMetadataImplementedType(implementedContract))
125
typeof(
ServiceMetadataBehavior
)))