The BaseBindingElement Class

The Microsoft.ConnectedIndustry.ServiceModel.ProtocolChannels.Channels.BaseBindingElement class is the base class for implementing a binding element.

The BaseBindingElement class exposes the following members.

Name

Description

BaseBindingElement

BaseBindingElement is an overloaded constructor. Initializes a new instance of the BaseBindingElement class.

Four overloads are available:

Name

Description

ExtendedBindingParameters

The ExtendedBindingParameters property is a Hashtable object that contains binding parameters.

PolicyPrefix.

The PolicyPrefix property is a read-only string property that returns the policy prefix. It must be overridden in a derived class.

PolicyName

The PolicyName property is a read-only string property that returns the policy name. It must be overridden in a derived class.

PolicyNamespace

The PolicyNamespace property is a read-only string property that returns the policy namespace. It must be overridden in a derived class.


Name

Description

BuildChannelFactory<TChannel>

The BuildChannelFactory<TChannel> method initializes a channel factory for building channels of the specified type from the binding context.

BuildChannelListener<TChannel>

The BuildChannelListener<TChannel> method initializes a channel listener to accept channels of the specified type from the binding context.

CanBuildChannelFactory

The CanBuildChannelFactory method returns a Boolean value that indicates whether the binding element can build a channel factory of a specified type of channel.

CanBuildChannelListener

The CanBuildChannelListener method returns a Boolean value that indicates whether the binding element can build a listener for a specified type of channel.

Clone

When overridden in a derived class, the Clone method returns a copy of the binding element object.

ExportPolicy

The ExportPolicy method exports a custom policy assertion.

GetCurrentBindingElement

The GetCurrentBindingElement method returns a binding element as a Microsoft.ConnectedIndustry.ServiceModel.ProtocolChannels.Channels.BaseBindingElement type. This method must be overridden in a derived class.

GetPolicyIdentifier

The GetPolicyIdentifier method returns the XML qualified name of the policy based on the values of the PolicyName and PolicyNamespace properties.

GetProperty<T>

When overridden in a derived class, the GetProperty<T> method returns the specified type of object, if present, from the appropriate layer in the binding stack.

HandleIncomingMessageDescription

The HandleIncomingMessageDescription method is called when the DCS policy importer imports a message-level policy. You override this method to configure the message description.

ImportPolicy

The ImportPolicy method imports a custom policy assertion and adds binding elements that implement the policy.

InternalExportPolicy

The InternalExportPolicy method overrides the behavior of the WCF PolicyExporter object. You override this method to export custom policy assertions to the WSDL definition of a service. For more information, see The IPolicyExportExtension Interface.

OnGetPolicyAssertion

The OnGetPolicyAssertion method enables a custom policy to override the way in which the DCS runtime generates the WSDL metadata for a policy assertion. You override this method to change the way a custom policy assertion is serialized. For example, the DCS Business Log policy overrides this method and returns a null value. This is because the Business Log policy is a service-side policy only and is not exported to client applications.

Show: