78 references to Elements
SMSvcHost (1)
System\ServiceModel\Activation\SharingService.cs (1)
46NamedPipeTransportBindingElement namedPipeBindingElement = customBinding.Elements.Find<NamedPipeTransportBindingElement>();
System.ServiceModel (66)
System\ServiceModel\Administration\EndpointInstanceProvider.cs (2)
75IWmiInstance[] bindings = new IWmiInstance[endpoint.Binding.Elements.Count]; 79FillBindingInfo(endpoint.Binding.Elements[j], ref bindings[j]);
System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (3)
238forward.ProtectionRequirements.Add(SecurityBindingElement.ComputeProtectionRequirements(this, context.BindingParameters, context.Binding.Elements, isForService)); 335reverse.ProtectionRequirements.Add(SecurityBindingElement.ComputeProtectionRequirements(this, context.BindingParameters, context.Binding.Elements, isForService)); 427MessageEncodingBindingElement encoding = context.Binding.Elements.Find<MessageEncodingBindingElement>();
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
188TransportBindingElement transport = context.Binding.Elements.Find<TransportBindingElement>();
System\ServiceModel\Channels\BindingContext.cs (1)
42Initialize(binding, binding.Elements, parameters, listenUriBaseAddress, listenUriRelativeAddress, listenUriMode);
System\ServiceModel\Channels\ChannelBuilder.cs (2)
35this.AddDemuxerBindingElement(this.binding.Elements); 43if (this.binding.Elements.Find<ChannelDemuxerBindingElement>() == null)
System\ServiceModel\Channels\ContextBindingElement.cs (1)
345foreach (BindingElement bindingElement in context.Binding.Elements)
System\ServiceModel\Channels\ContextBindingElementImporter.cs (3)
55unrecognized = customBinding.Elements.Find<UnrecognizedAssertionsBindingElement>(); 62foreach (BindingElement element in customBinding.Elements) 71customBinding.Elements.Remove(unrecognized);
System\ServiceModel\Channels\InternalDuplexBindingElement.cs (2)
206if (binding.Elements.Find<CompositeDuplexBindingElement>() == null) 223binding.Elements.Insert(0, internalDuplexBindingElement);
System\ServiceModel\Channels\MessageEncodingBindingElementImporter.cs (3)
127ConvertToCustomBinding(context).Elements.Add(encodingBindingElement); 142ConvertToCustomBinding(context).Elements.Find<MessageEncodingBindingElement>().MessageVersion 150BindingElementCollection elements = binding is CustomBinding ? ((CustomBinding)binding).Elements : binding.CreateBindingElements();
System\ServiceModel\Channels\PeerChannelFactory.cs (1)
46BinaryMessageEncodingBindingElement encoder = context.Binding.Elements.Find<BinaryMessageEncodingBindingElement>();
System\ServiceModel\Channels\PeerChannelListener.cs (1)
43BinaryMessageEncodingBindingElement encoder = context.Binding.Elements.Find<BinaryMessageEncodingBindingElement>();
System\ServiceModel\Channels\SecurityBindingElement.cs (7)
352for (int i = 0; i < builder.Binding.Elements.Count; ++i) 354if ((builder.Binding.Elements[i] is MessageEncodingBindingElement) || (builder.Binding.Elements[i] is StreamUpgradeBindingElement)) 358if (builder.Binding.Elements[i] is ChannelDemuxerBindingElement) 362else if (builder.Binding.Elements[i] is TransportBindingElement) 380builder.Binding.Elements.Insert(0, demuxer); 386Collection<ChannelDemuxerBindingElement> demuxerElements = builder.Binding.Elements.FindAll<ChannelDemuxerBindingElement>();
System\ServiceModel\Channels\StandardBindingImporter.cs (1)
30BindingElementCollection elements = ((CustomBinding)endpointContext.Endpoint.Binding).Elements;
System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (6)
177protocolFactory.ProtectionRequirements.Add(SecurityBindingElement.ComputeProtectionRequirements(this, context.BindingParameters, context.Binding.Elements, isForService)); 231sessionFactory.ProtectionRequirements.Add(SecurityBindingElement.ComputeProtectionRequirements(this, context.BindingParameters, context.Binding.Elements, false)); 259protocolFactory.ProtectionRequirements.Add(SecurityBindingElement.ComputeProtectionRequirements(this, context.BindingParameters, context.Binding.Elements, false)); 321sessionFactory.ProtectionRequirements.Add(SecurityBindingElement.ComputeProtectionRequirements(this, context.BindingParameters, context.Binding.Elements, true)); 358protocolFactory.ProtectionRequirements.Add(SecurityBindingElement.ComputeProtectionRequirements(this, context.BindingParameters, context.Binding.Elements, true)); 386MessageEncodingBindingElement encoding = context.Binding.Elements.Find<MessageEncodingBindingElement>();
System\ServiceModel\Channels\TransportBindingElement.cs (1)
158MessageEncodingBindingElement messageEncoderBindingElement = context.Binding.Elements.Find<MessageEncodingBindingElement>();
System\ServiceModel\Channels\TransportBindingElementImporter.cs (3)
70BindingElementCollection elements = binding is CustomBinding ? ((CustomBinding)binding).Elements : binding.CreateBindingElements(); 95BindingElementCollection elements = ConvertToCustomBinding(context).Elements; 108ConvertToCustomBinding(context).Elements.Add(transportBindingElement);
System\ServiceModel\Channels\TransportSecurityBindingElement.cs (1)
276MessageEncodingBindingElement encoding = context.Binding.Elements.Find<MessageEncodingBindingElement>();
System\ServiceModel\Configuration\CustomBindingCollectionElement.cs (2)
116foreach (BindingElement bindingElement in customBinding.Elements) 132bool retval = configElement.Count == customBinding.Elements.Count;
System\ServiceModel\Configuration\CustomBindingElement.cs (1)
181theBinding.Elements.Add(bindingConfig.CreateBindingElement());
System\ServiceModel\Description\DispatcherBuilder.cs (1)
36MsmqIntegrationBindingElement element = customBinding.Elements.Find<MsmqIntegrationBindingElement>();
System\ServiceModel\Description\MetadataExchangeBindings.cs (2)
199binding.Elements.Add(tcpTransport); 207binding.Elements.Add(pipeTransport);
System\ServiceModel\Description\ServiceDebugBehavior.cs (4)
89TextMessageEncodingBindingElement textMessageEncodingBindingElement = customBinding.Elements.Find<TextMessageEncodingBindingElement>(); 95HttpTransportBindingElement httpTransportBindingElement = customBinding.Elements.Find<HttpTransportBindingElement>(); 118TextMessageEncodingBindingElement textMessageEncodingBindingElement = customBinding.Elements.Find<TextMessageEncodingBindingElement>(); 124HttpsTransportBindingElement httpsTransportBindingElement = customBinding.Elements.Find<HttpsTransportBindingElement>();
System\ServiceModel\Description\ServiceMetadataBehavior.cs (4)
94TextMessageEncodingBindingElement textMessageEncodingBindingElement = customBinding.Elements.Find<TextMessageEncodingBindingElement>(); 100HttpTransportBindingElement httpTransportBindingElement = customBinding.Elements.Find<HttpTransportBindingElement>(); 123TextMessageEncodingBindingElement textMessageEncodingBindingElement = customBinding.Elements.Find<TextMessageEncodingBindingElement>(); 129HttpsTransportBindingElement httpsTransportBindingElement = customBinding.Elements.Find<HttpsTransportBindingElement>();
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (2)
48binding.Elements.Find<TransactionFlowBindingElement>(); 255TransactionFlowBindingElement txFlowBindingElement = binding.Elements.Find<TransactionFlowBindingElement>();
System\ServiceModel\MsmqIntegration\MsmqIntegrationValidationBehavior.cs (1)
86return (customBinding.Elements.Find<MsmqIntegrationBindingElement>() != null);
System\ServiceModel\Security\AcceleratedTokenAuthenticator.cs (1)
113customBinding.Elements.Insert(0, new AcceleratedTokenAuthenticatorBindingElement(this));
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (1)
555channelBuilder.Binding.Elements.Insert(0, new ReplyAdapterBindingElement());
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
364MessageEncodingBindingElement encoding = this.channelBuilder.Binding.Elements.Find<MessageEncodingBindingElement>();
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (3)
1055channelBuilder.Binding.Elements.Insert(0, new ReplyAdapterBindingElement()); 1056channelBuilder.Binding.Elements.Insert(0, new SecuritySessionAuthenticatorBindingElement(this)); 1062SecurityBindingElement securityBindingElement = this.IssuerBindingContext.Binding.Elements.Find<SecurityBindingElement>();
System\ServiceModel\Security\SecuritySessionServerSettings.cs (1)
614MessageEncodingBindingElement encoding = this.channelBuilder.Binding.Elements.Find<MessageEncodingBindingElement>();
System\ServiceModel\Security\SecurityUtils.cs (2)
1394return ((context.Binding.Elements.Find<CompositeDuplexBindingElement>() != null) 1395|| (context.Binding.Elements.Find<InternalDuplexBindingElement>() != null));
System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2650bootstrapBinding.Elements.Add(be);
System.ServiceModel.Discovery (7)
System\ServiceModel\Discovery\DiscoveryClientBindingElement.cs (1)
112if (context.Binding.Elements.IndexOf(this) != 0)
System\ServiceModel\Discovery\DynamicEndpoint.cs (2)
86if (customBinding.Elements.Find<DiscoveryClientBindingElement>() == null) 88customBinding.Elements.Insert(0, this.discoveryClientBindingElement);
System\ServiceModel\Discovery\UdpAnnouncementEndpoint.cs (2)
103binding.Elements.Add(textBE); 104binding.Elements.Add(udpBE);
System\ServiceModel\Discovery\UdpDiscoveryEndpoint.cs (2)
108binding.Elements.Add(textBE); 109binding.Elements.Add(udpBE);
System.ServiceModel.Routing (3)
System\ServiceModel\Routing\ClientFactory.cs (3)
83SynchronousSendBindingElement syncSend = binding.Elements.Find<SynchronousSendBindingElement>(); 86binding.Elements.Insert(0, new SynchronousSendBindingElement()); 99TransactionFlowBindingElement transactionFlow = binding.Elements.Find<TransactionFlowBindingElement>();
System.ServiceModel.Web (1)
System\ServiceModel\Web\WebServiceHost.cs (1)
178BindingElementCollection bec = customBinding.Elements;