ServiceAuthenticationBehavior.IServiceBehavior.AddBindingParameters Method (ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)

.NET Framework (current version)
 

An implementation of the AddBindingParameters method.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void IServiceBehavior.AddBindingParameters(
	ServiceDescription description,
	ServiceHostBase serviceHostBase,
	Collection<ServiceEndpoint> endpoints,
	BindingParameterCollection parameters
)

Parameters

description
Type: System.ServiceModel.Description.ServiceDescription

The service description of the service.

serviceHostBase
Type: System.ServiceModel.ServiceHostBase

The host of the service.

endpoints
Type: System.Collections.ObjectModel.Collection<ServiceEndpoint>

The service endpoints.

parameters
Type: System.ServiceModel.Channels.BindingParameterCollection

Custom objects to which binding elements have access.

This method is called once for each listen URI. For example, if a service has four endpoints, and two of them have the same listen URI, then this method gets called three times. The reason is that the bindingParameters target each channel stack and there is one channel stack for each listen URI. Because each call receives those endpoints at that listen URI, two calls each get a single ServiceEndpoint, and one call gets a collection of two ServiceEndpoint objects.

.NET Framework
Available since 4.0
Return to top
Show: