Esta documentación está archivada y no tiene mantenimiento.

IContextChannel.AllowOutputBatching (Propiedad)

Gets or sets a value that instructs Windows Communication Foundation (WCF) to store a set of messages before giving the messages to the transport.

Espacio de nombres: System.ServiceModel
Ensamblado: System.ServiceModel (en system.servicemodel.dll)

bool AllowOutputBatching { get; set; }
/** @property */
boolean get_AllowOutputBatching ()

/** @property */
void set_AllowOutputBatching (boolean value)

function get AllowOutputBatching () : boolean

function set AllowOutputBatching (value : boolean)

No aplicable.

Valor de propiedad

true if the batching of outgoing messages is allowed; otherwise false.

The level of batching affects the performance of the system. When you set the value to true, you are instructing the system to hold on to this message in a local buffer to send out with other serialized messages if possible. Set the AllowOutputBatching property to true if message throughput is important; set it to false if reducing latency is important. There are other knobs used to manage the batching of messages that are accessible from the binding elements used to configure a service. Properties common to connection-oriented transports such as TCP and named pipes that are used to tune performance are located, for example, on the ConnectionOrientedTransportBindingElement. The MaxOutputDelay is used to set the maximum interval of time that a chunk of a message or a full message can remain buffered in memory before being sent out and the ConnectionBufferSize determines the size of the this local buffer, as well as the buffer sizes used by the underlying network objects.

The value of AllowOutputBatching does not override the value of the AllowOutputBatching property that is set at the channel level. For example, if AllowOutputBatching is set to true for a particular message, that message is sent immediately regardless of the value of AllowOutputBatching.


All request/reply messages are sent immediately regardless of the value of AllowOutputBatching.

Windows 98, Windows 2000 Service Pack 4, Windows CE, Windows Millennium, Windows Mobile para Pocket PC, Windows Mobile para Smartphone, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0