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