PeerMessagePropagationFilter.ShouldMessagePropagate 方法

定义

返回是否应传播对等通道上接收到的消息,如果传播,则指定消息的目标。

public:
 abstract System::ServiceModel::PeerMessagePropagation ShouldMessagePropagate(System::ServiceModel::Channels::Message ^ message, System::ServiceModel::PeerMessageOrigination origination);
public abstract System.ServiceModel.PeerMessagePropagation ShouldMessagePropagate (System.ServiceModel.Channels.Message message, System.ServiceModel.PeerMessageOrigination origination);
abstract member ShouldMessagePropagate : System.ServiceModel.Channels.Message * System.ServiceModel.PeerMessageOrigination -> System.ServiceModel.PeerMessagePropagation
Public MustOverride Function ShouldMessagePropagate (message As Message, origination As PeerMessageOrigination) As PeerMessagePropagation

参数

message
Message

要计算用于传播的消息。

origination
PeerMessageOrigination

一个 PeerMessageOrigination 枚举值,该值指定计算中的消息的源(本地或远程)。

返回

PeerMessagePropagation

一个 PeerMessagePropagation 枚举值,该值指示消息的目标(本地、远程、两者兼有或根本不传播)。

适用于