ConnectionOrientedTransportBindingElement.MaxOutputDelay 属性

定义

获取或设置消息块或完整消息在发出之前可以在内存中保持缓冲的最大时间间隔。

public:
 property TimeSpan MaxOutputDelay { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan MaxOutputDelay { get; set; }
member this.MaxOutputDelay : TimeSpan with get, set
Public Property MaxOutputDelay As TimeSpan

属性值

TimeSpan

一个 TimeSpan 指定消息块或完整消息在发送之前在内存中保持缓冲的最大时间间隔。默认值为 2 秒。 只有在传出消息的 AllowOutputBatching 属性设置为 true 时,该属性才有意义。 否则,该值就会被忽略,消息将立即发送。

例外

值小于零。

注解

如果 AllowOutputBatchingfalse,就会忽略此消息的该属性。

适用于