OneWayBindingElement Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

System.Object
  System.ServiceModel.Channels.BindingElement
    System.ServiceModel.Channels.OneWayBindingElement

public sealed class OneWayBindingElement : BindingElement, IPolicyExportExtension

NameDescription
System_CAPS_pubmethodOneWayBindingElement()

Initializes a new instance of the OneWayBindingElement class.

NameDescription
System_CAPS_pubpropertyChannelPoolSettings

Gets the channel pool settings.

System_CAPS_pubpropertyMaxAcceptedChannels

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

System_CAPS_pubpropertyPacketRoutable

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

NameDescription
System_CAPS_pubmethodBuildChannelFactory<TChannel>(BindingContext)

Initializes a channel factory for producing one-way channels from the binding context.(Overrides BindingElement.BuildChannelFactory<TChannel>(BindingContext).)

System_CAPS_pubmethodBuildChannelListener<TChannel>(BindingContext)

Initializes a channel listener for accepting one-way channels.(Overrides BindingElement.BuildChannelListener<TChannel>(BindingContext).)

System_CAPS_pubmethodCanBuildChannelFactory<TChannel>(BindingContext)

Gets a value that indicates whether a channel factory of the specified type can be built. (Overrides BindingElement.CanBuildChannelFactory<TChannel>(BindingContext).)

System_CAPS_pubmethodCanBuildChannelListener<TChannel>(BindingContext)

Gets a value that indicates whether a channel listener of the specified type can be built.(Overrides BindingElement.CanBuildChannelListener<TChannel>(BindingContext).)

System_CAPS_pubmethodClone()

Clones an instance of this class.(Overrides BindingElement.Clone().)

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetProperty<T>(BindingContext)

Gets properties from the binding stack, if present.(Overrides BindingElement.GetProperty<T>(BindingContext).)

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodShouldSerializeChannelPoolSettings()

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

System_CAPS_pubmethodToString()

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

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

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

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.

.NET Framework
Available since 3.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: