97 references to Behaviors
System.ServiceModel (50)
System\ServiceModel\Administration\EndpointInfo.cs (1)
33this.behaviors = endpoint.Behaviors;
System\ServiceModel\ChannelFactory.cs (6)
206if (endpoint.Behaviors.Find<SecurityCredentialsManager>() == null) 208endpoint.Behaviors.Add(new ClientCredentials()); 215ClientCredentials c = endpoint.Behaviors.Find<ClientCredentials>(); 219endpoint.Behaviors.Add(c); 341ClientCredentials credentials = this.Endpoint.Behaviors.Find<ClientCredentials>(); 861endpoint.Behaviors.Add(channelBehavior);
System\ServiceModel\Channels\PeerNeighborManager.cs (2)
1066this.channelFactory.Endpoint.Behaviors.Add(new ClientViaBehavior(remoteAddress.Uri)); 1067this.channelFactory.Endpoint.Behaviors.Add(new PeerNeighborBehavior(this));
System\ServiceModel\Channels\PeerSecurityManager.cs (2)
568factory.Endpoint.Behaviors.Remove<ClientCredentials>(); 571factory.Endpoint.Behaviors.Add(this.credManager.CloneForTransport());
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
606registerChannelFactory.Endpoint.Behaviors.Add(new SharedListenerProxyBehavior(this));
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (1)
162serviceEndpoint.Behaviors.Add(behavior);
System\ServiceModel\ComIntegration\TypedServiceChannelBuilder.cs (1)
189serviceEndpoint.Behaviors.Add(behavior);
System\ServiceModel\ComIntegration\WsdlServiceChannelBuilder.cs (1)
156serviceEndpoint.Behaviors.Add(behavior);
System\ServiceModel\Description\ConfigLoader.cs (8)
175LoadBehaviors<IEndpointBehavior>(commonBehaviors.EndpointBehaviors, serviceEndpoint.Behaviors, true/*commonBehaviors*/); 181LoadBehaviors<IEndpointBehavior>(behaviorElement, serviceEndpoint.Behaviors, false/*commonBehaviors*/); 194LoadBehaviors<IEndpointBehavior>(commonBehaviors.EndpointBehaviors, serviceEndpoint.Behaviors, true/*commonBehaviors*/); 520KeyedByTypeCollection<IEndpointBehavior> behaviors = serviceEndpoint.Behaviors; 552LoadBehaviors<IEndpointBehavior>(behaviorEndpointElement, endpoint.Behaviors, false); 767LoadBehaviors<IEndpointBehavior>(commonBehaviors.EndpointBehaviors, endpoint.Behaviors, true/*commonBehaviors*/); 773LoadBehaviors<IEndpointBehavior>(behaviorElement, endpoint.Behaviors, false/*commonBehaviors*/); 962KeyedByTypeCollection<IEndpointBehavior> behaviors = endpoint.Behaviors;
System\ServiceModel\Description\DispatcherBuilder.cs (6)
226foreach (IEndpointBehavior ieb in endpoint.Behaviors) 774TransactedBatchingBehavior batchBehavior = endpoint.Behaviors.Find<TransactedBatchingBehavior>(); 855for (int j = 0; j < endpoint.Behaviors.Count; j++) 857IEndpointBehavior eb = endpoint.Behaviors[j]; 1063for (int i = 0; i < serviceEndpoint.Behaviors.Count; i++) 1065IEndpointBehavior behavior = serviceEndpoint.Behaviors[i];
System\ServiceModel\Description\MetadataExchangeClient.cs (2)
106this.factory.Endpoint.Behaviors.RemoveAll<ClientCredentials>(); 107this.factory.Endpoint.Behaviors.Add(value);
System\ServiceModel\Description\ServiceEndpoint.cs (3)
56get { return this.Behaviors; } 251for (int j = 0; j < this.Behaviors.Count; j++) 253IEndpointBehavior ieb = this.Behaviors[j];
System\ServiceModel\Description\ServiceMetadataBehavior.cs (2)
494foreach (IEndpointBehavior behavior in endpoint.Behaviors) 496exportedEndpoint.Behaviors.Add(behavior);
System\ServiceModel\Description\TypeLoader.cs (4)
527CallbackBehaviorAttribute attr = serviceEndpoint.Behaviors.Find<CallbackBehaviorAttribute>(); 530serviceEndpoint.Behaviors.Insert(0, new CallbackBehaviorAttribute()); 541serviceEndpoint.Behaviors.Insert(0, behaviorAttribute); 545serviceEndpoint.Behaviors.Add(behaviorAttribute);
System\ServiceModel\Description\WsdlEndpointConversionContext.cs (1)
65foreach (IWsdlExportExtension extension in endpoint.Behaviors.FindAll<IWsdlExportExtension>())
System\ServiceModel\Dispatcher\TransactionValidationBehavior.cs (1)
83CallbackBehaviorAttribute attribute = endpoint.Behaviors.Find<CallbackBehaviorAttribute>();
System\ServiceModel\PeerResolvers\PeerDefaultCustomResolverClient.cs (2)
80channelFactory.Endpoint.Behaviors.Remove<ClientCredentials>(); 82channelFactory.Endpoint.Behaviors.Add(credentials);
System\ServiceModel\Security\WSTrustDec2005.cs (3)
118result.Endpoint.Behaviors.Remove<ClientCredentials>(); 121result.Endpoint.Behaviors.Add(channelBehaviors[i]); 125result.Endpoint.Behaviors.Add(new WSTrustFeb2005.DriverFeb2005.InteractiveInitializersRemovingBehavior());
System\ServiceModel\Security\WSTrustFeb2005.cs (3)
255result.Endpoint.Behaviors.Remove<ClientCredentials>(); 258result.Endpoint.Behaviors.Add(channelBehaviors[i]); 262result.Endpoint.Behaviors.Add(new InteractiveInitializersRemovingBehavior());
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (1)
151endpoint.Behaviors.Add(new HostedMetadataExchangeEndpointBehavior());
System.ServiceModel.Activities (13)
System\ServiceModel\Activities\Description\ControlOperationBehavior.cs (1)
59CorrelationQueryBehavior endpointQueryBehavior = endpoint.Behaviors.Find<CorrelationQueryBehavior>();
System\ServiceModel\Activities\Description\WorkflowOperationBehavior.cs (1)
91CorrelationQueryBehavior queryBehavior = endpoint.Behaviors.Find<CorrelationQueryBehavior>();
System\ServiceModel\Activities\InternalSendMessage.cs (3)
336CorrelationQueryBehavior correlationQueryBehavior = serviceEndpoint.Behaviors.Find<CorrelationQueryBehavior>(); 346serviceEndpoint.Behaviors.Add(correlationQueryBehavior); 2819this.correlationQueryBehavior = this.targetEndpoint.Behaviors.Find<CorrelationQueryBehavior>();
System\ServiceModel\Activities\WorkflowHostingEndpoint.cs (2)
34Fx.Assert(!this.Behaviors.Contains(typeof(CorrelationQueryBehavior)), "Must not contain correlation query!"); 36this.Behaviors.Add(new CorrelationQueryBehavior(this.correlationQueries));
System\ServiceModel\Activities\WorkflowServiceHost.cs (6)
337ConfigLoader.LoadChannelBehaviors(behaviorConfigurationName, null, serviceEndpoint.Behaviors); 590Fx.Assert(!serviceEndpoint.Behaviors.Contains(correlationQueryBehaviorType), 615serviceEndpoint.Behaviors.Add(new CorrelationQueryBehavior(uniqueQueries) { ServiceContractName = endpointContractName }); 619if (!serviceEndpoint.Behaviors.Contains(typeof(CorrelationQueryBehavior))) 621serviceEndpoint.Behaviors.Add(new CorrelationQueryBehavior(new Collection<CorrelationQuery>()) { ServiceContractName = endpointContractName }); 642if (!serviceEndpoint.Behaviors.Contains(correlationQueryBehaviorType))
System.ServiceModel.Discovery (16)
System\ServiceModel\Discovery\DiscoveryEndpoint.cs (2)
37base.Behaviors.Add(new DiscoveryOperationContextExtensionInitializer(this.discoveryOperationContextExtension)); 38base.Behaviors.Add(new DiscoveryEndpointValidator());
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (1)
211EndpointDiscoveryBehavior endpointDiscoveryBehavior = endpoint.Behaviors.Find<EndpointDiscoveryBehavior>();
System\ServiceModel\Discovery\ServiceDiscoveryBehavior.cs (1)
74appEndpoints[i].Behaviors.Add(
System\ServiceModel\Discovery\UdpAnnouncementEndpoint.cs (2)
110base.Behaviors.Add(this.viaBehavior); 111base.Behaviors.Add(new UdpContractFilterBehavior());
System\ServiceModel\Discovery\UdpDiscoveryEndpoint.cs (4)
64base.Behaviors.Add(new DispatcherSynchronizationBehavior { AsynchronousSendEnabled = true }); 114base.Behaviors.Add(this.viaBehavior); 115base.Behaviors.Add(new UdpReplyToBehavior(udpBE.Scheme)); 116base.Behaviors.Add(new UdpContractFilterBehavior());
System\ServiceModel\Discovery\Version11\DiscoveryInnerClientAdhoc11.cs (2)
22if (discoveryEndpoint.Behaviors.Find<DiscoveryCallbackBehavior>() == null) 24discoveryEndpoint.Behaviors.Insert(0, new DiscoveryCallbackBehavior());
System\ServiceModel\Discovery\VersionApril2005\DiscoveryInnerClientApril2005.cs (2)
23if (discoveryEndpoint.Behaviors.Find<DiscoveryCallbackBehavior>() == null) 25discoveryEndpoint.Behaviors.Insert(0, new DiscoveryCallbackBehavior());
System\ServiceModel\Discovery\VersionCD1\DiscoveryInnerClientAdhocCD1.cs (2)
22if (discoveryEndpoint.Behaviors.Find<DiscoveryCallbackBehavior>() == null) 24discoveryEndpoint.Behaviors.Insert(0, new DiscoveryCallbackBehavior());
System.ServiceModel.Routing (3)
System\ServiceModel\Routing\ClientFactory.cs (2)
117KeyedByTypeCollection<IEndpointBehavior> behaviors = endpoint.Behaviors; 121foreach (IEndpointBehavior behavior in clientEndpoint.Behaviors)
System\ServiceModel\Routing\RoutingBehavior.cs (1)
69endpoint.Behaviors.Add(new RoutingEndpointBehavior(endpoint));
System.ServiceModel.Web (13)
System\ServiceModel\Description\WebHttpEndpoint.cs (2)
25this.Behaviors.Add(new WebHttpBehavior()); 56WebHttpBehavior webHttpBehavior = this.Behaviors.Find<WebHttpBehavior>();
System\ServiceModel\Description\WebScriptEndpoint.cs (2)
31this.Behaviors.Add(new WebScriptEnablingBehavior()); 38WebScriptEnablingBehavior webScriptEnablingBehavior = this.Behaviors.Find<WebScriptEnablingBehavior>();
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (1)
56WebHttpBehavior webHttpBehavior = endpoint.Behaviors.Find<WebHttpBehavior>();
System\ServiceModel\Web\WebChannelFactory.cs (2)
76if (this.Endpoint.Behaviors.Find<WebHttpBehavior>() == null) 78this.Endpoint.Behaviors.Add(new WebHttpBehavior());
System\ServiceModel\Web\WebServiceHost.cs (3)
231if (serviceEndpoint.Behaviors.Find<WebHttpBehavior>() == null) 234if (serviceEndpoint.Behaviors.Find<WebHttpBehavior>() == null) 236serviceEndpoint.Behaviors.Add(new WebHttpBehavior());
System\ServiceModel\WebScriptServiceHost.cs (3)
35if (endpoint.Behaviors.Find<WebHttpBehavior>() == null) 38if (endpoint.Behaviors.Find<WebHttpBehavior>() == null) 40endpoint.Behaviors.Add(new WebScriptEnablingBehavior());
System.WorkflowServices (1)
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
45this.Behaviors.Add(behavior);