BindingContext BindingContext BindingContext BindingContext Class

Definition

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

public ref class BindingContext
public class BindingContext
type BindingContext = class
Public Class BindingContext
Inheritance
BindingContextBindingContextBindingContextBindingContext

Remarks

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.

Constructors

BindingContext(CustomBinding, BindingParameterCollection) BindingContext(CustomBinding, BindingParameterCollection) BindingContext(CustomBinding, BindingParameterCollection) BindingContext(CustomBinding, BindingParameterCollection)

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

BindingContext(CustomBinding, BindingParameterCollection, Uri, String, ListenUriMode) BindingContext(CustomBinding, BindingParameterCollection, Uri, String, ListenUriMode) BindingContext(CustomBinding, BindingParameterCollection, Uri, String, ListenUriMode) BindingContext(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.

Properties

Binding Binding Binding Binding

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

BindingParameters BindingParameters BindingParameters BindingParameters

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

ListenUriBaseAddress ListenUriBaseAddress ListenUriBaseAddress ListenUriBaseAddress

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

ListenUriMode ListenUriMode ListenUriMode ListenUriMode

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

ListenUriRelativeAddress ListenUriRelativeAddress ListenUriRelativeAddress ListenUriRelativeAddress

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

RemainingBindingElements RemainingBindingElements RemainingBindingElements RemainingBindingElements

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

Methods

BuildInnerChannelFactory<TChannel>() BuildInnerChannelFactory<TChannel>() BuildInnerChannelFactory<TChannel>() BuildInnerChannelFactory<TChannel>()

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

BuildInnerChannelListener<TChannel>() BuildInnerChannelListener<TChannel>() BuildInnerChannelListener<TChannel>() BuildInnerChannelListener<TChannel>()

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

CanBuildInnerChannelFactory<TChannel>() CanBuildInnerChannelFactory<TChannel>() CanBuildInnerChannelFactory<TChannel>() CanBuildInnerChannelFactory<TChannel>()

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

CanBuildInnerChannelListener<TChannel>() CanBuildInnerChannelListener<TChannel>() CanBuildInnerChannelListener<TChannel>() CanBuildInnerChannelListener<TChannel>()

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

Clone() Clone() Clone() Clone()

Returns a copy of the current channel build context.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetInnerProperty<T>() GetInnerProperty<T>() GetInnerProperty<T>() GetInnerProperty<T>()

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

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to