IReceiveContextSettings 接口
定义
一个可用于设置接收上下文设置的接口。An interface that enables you to set receive context settings.
public interface class IReceiveContextSettings
public interface IReceiveContextSettings
type IReceiveContextSettings = interface
Public Interface IReceiveContextSettings
注解
接收上下文允许控制确认(在使用单向消息通道时)和非破坏性读取(在使用队列通道时)。Receive context allows for controlled acknowledgement when using a one-way message channel and non-destructive reads when using a queued channel.
属性
| Enabled |
获取或设置一个值,该值指定是否启用接收上下文。Gets or sets a value that specifies if receive context is enabled. |
| ValidityDuration |
获取一个值,该值指定连接超时(在使用直接通道时)和消息锁定持续时间(在使用队列通道时)。Gets a value that specifies a connection timeout when used with direct channels and message lock duration when used with queued channels. |