BindingContext Class

 

Provides information about the addresses, bindings, binding elements and binding parameters required to build the channel listeners and channel factories.

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

System.Object
  System.ServiceModel.Channels.BindingContext

public class BindingContext

NameDescription
System_CAPS_pubmethodBindingContext(CustomBinding, BindingParameterCollection)

Initializes a new instance of the BindingContext class for a specified binding and collection of binding parameters.

System_CAPS_pubmethodBindingContext(CustomBinding, BindingParameterCollection, Uri, String, ListenUriMode)

Initializes a new instance of the BindingContext class for a specified binding, collection of binding parameters, and address for the endpoint at which the service listens.

NameDescription
System_CAPS_pubpropertyBinding

Gets the binding for the channel built in the current context.

System_CAPS_pubpropertyBindingParameters

Gets the collection of binding parameters for the channel built in the current context.

System_CAPS_pubpropertyListenUriBaseAddress

Gets or sets the URI that provides the base address at which the service endpoint listens.

System_CAPS_pubpropertyListenUriMode

Gets or sets a value that indicates whether the transport must ensure that the URI provided for the service to listen on is unique.

System_CAPS_pubpropertyListenUriRelativeAddress

Gets or sets the URI that provides the relative address at which the service endpoint listens.

System_CAPS_pubpropertyRemainingBindingElements

Gets the binding elements that are used by other binding elements to construct the channel stack.

NameDescription
System_CAPS_pubmethodBuildInnerChannelFactory<TChannel>()

Builds the inner channel factory for channels of a specified type below the current channel factory.

System_CAPS_pubmethodBuildInnerChannelListener<TChannel>()

Builds an inner channel listener that listens for a specified type of channel.

System_CAPS_pubmethodCanBuildInnerChannelFactory<TChannel>()

Returns a value that indicates whether the inner channel factory can produce a specified type of channel.

System_CAPS_pubmethodCanBuildInnerChannelListener<TChannel>()

Returns a value that indicates whether the inner channel listener can be built to listen for a specified type of channel.

System_CAPS_pubmethodClone()

Returns a copy of the current channel build context.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetInnerProperty<T>()

Returns a typed object requested, if present, from the appropriate layer in the binding stack.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The channel listeners and channel factories, in turn, construct the channel stacks used to process incoming and outgoing messages. The binding context also provides the linkage to the inner channel factories and channel listeners that are used to construct the channel and listener stacks. The binding context basically stores all of the dynamic information needed during the construction of the channel stack.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: