OneWayBindingElement Class

Definition

Enables packet routing and the use of one-way methods.

public ref class OneWayBindingElement sealed : System::ServiceModel::Channels::BindingElement, System::ServiceModel::Description::IPolicyExportExtension
public sealed class OneWayBindingElement : System.ServiceModel.Channels.BindingElement, System.ServiceModel.Description.IPolicyExportExtension
type OneWayBindingElement = class
    inherit BindingElement
    interface IPolicyExportExtension
Public NotInheritable Class OneWayBindingElement
Inherits BindingElement
Implements IPolicyExportExtension
Inheritance
OneWayBindingElement
Implements

Remarks

To enable packet routing a one-way conversion layer is required, which this class provides. This class is a binding in the stack of bindings that performs a message-level shape change called OneWayBindingElement. This shape change can take a IDuplexSessionChannel or a IRequestChannel and expose it as a IInputChannel, or conversely it can take a IDuplexSessionChannel or a IRequestChannel and expose it as a IOutputChannel. A user can create a custom binding that layers this binding over a session-aware or request-reply transport to make it packet routable.

This class is also useful when you want to expose one-way methods in a more native fashion. More transformations can be applied over this layer, such as Composite Duplex and Reliable Messaging.

Constructors

OneWayBindingElement()

Initializes a new instance of the OneWayBindingElement class.

Properties

ChannelPoolSettings

Gets the channel pool settings.

MaxAcceptedChannels

Gets or sets the maximum number of channels that can be accepted.

PacketRoutable

Gets or sets a value that indicates whether packet routing is enabled.

Methods

BuildChannelFactory<TChannel>(BindingContext)

Initializes a channel factory for producing one-way channels from the binding context.

BuildChannelListener<TChannel>(BindingContext)

Initializes a channel listener for accepting one-way channels.

CanBuildChannelFactory<TChannel>(BindingContext)

Gets a value that indicates whether a channel factory of the specified type can be built.

CanBuildChannelListener<TChannel>(BindingContext)

Gets a value that indicates whether a channel listener of the specified type can be built.

Clone()

Clones an instance of this class.

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetProperty<T>(BindingContext)

Gets properties from the binding stack, if present.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ShouldSerializeChannelPoolSettings()

Returns whether the properties of the channel pool that are associated with this binding element should be serialized.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

Exports a custom policy assertion that represents the one-way binding element.

Applies to