OneWayBindingElement 類別

定義

啟用封包路由和使用單向方法。

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
繼承
OneWayBindingElement
實作

備註

若要啟用封包路由,則需要此類別所提供的 單向轉換 層。 這個類別是繫結堆疊中的繫結,它會執行稱為 OneWayBindingElement 的訊息層級形狀變更。 這個形狀變更可以接受 IDuplexSessionChannelIRequestChannel,並將它公開為 IInputChannel;或是相反地接受 IDuplexSessionChannelIRequestChannel,並將它公開為 IOutputChannel。 使用者可以建立自訂繫結,將這個繫結置於工作階段感知或要求-回覆傳輸層上,讓它啟用路由傳送封包功能。

當您要以較原始的方式來公開單向方法時,也可以使用這個類別。 還有其他轉換可套用至這一層,例如複合雙工和可信賴傳訊。

建構函式

OneWayBindingElement()

初始化 OneWayBindingElement 類別的新執行個體。

屬性

ChannelPoolSettings

取得通道集區設定。

MaxAcceptedChannels

取得或設定可以接受的通道數目上限。

PacketRoutable

取得或設定值,指出是否啟用封包路由。

方法

BuildChannelFactory<TChannel>(BindingContext)

初始化通道處理站,以便從繫結內容產生單向通道。

BuildChannelListener<TChannel>(BindingContext)

將通道接聽程式初始化成接受單向通道。

CanBuildChannelFactory<TChannel>(BindingContext)

取得值,這個值會指出是否能建置指定型別的通道處理站。

CanBuildChannelListener<TChannel>(BindingContext)

取得值,這個值會指出是否能建置指定型別的通道接聽程式。

Clone()

複製這個類別的執行個體。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetProperty<T>(BindingContext)

從繫結堆疊取得屬性,如果有的話。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ShouldSerializeChannelPoolSettings()

傳回與這個繫結項目相關聯之通道集區的屬性是否應序列化。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

匯出可表示單向繫結項目的自訂原則判斷提示。

適用於