TransactedBatchingBehavior Class

 

Represents a behavior that optimizes the receive operations for transports that support transactional receives.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System::Object
  System.ServiceModel.Description::TransactedBatchingBehavior

public ref class TransactedBatchingBehavior : IEndpointBehavior

NameDescription
System_CAPS_pubmethodTransactedBatchingBehavior(Int32)

Initializes a new instance of the TransactedBatchingBehavior class with the specified batch size.

NameDescription
System_CAPS_pubpropertyMaxBatchSize

Gets or sets the maximum number of receive operations that can be batched together in one transaction.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior::AddBindingParameters(ServiceEndpoint^, BindingParameterCollection^)

Applies binding settings to the specified service endpoint. This method cannot be inherited.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior::ApplyClientBehavior(ServiceEndpoint^, ClientRuntime^)

Applies transaction batching behavior settings to the specified service endpoint. This method cannot be inherited.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior::ApplyDispatchBehavior(ServiceEndpoint^, EndpointDispatcher^)

Associates an endpoint dispatcher with the specified service endpoint. This method cannot be inherited.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEndpointBehavior::Validate(ServiceEndpoint^)

Ensures that transacted batching is applicable only for the bindings that support transacted receive operation. This method cannot be inherited.

A transport that is configured with this behavior attempts to batch several receive operations into one transaction. By doing so, the relatively high cost of creating a transaction and committing it in every receive operation is avoided.

The following example shows how to add the transacted batching behavior to a service in a configuration file.

The following example shows how to add the transacted batching behavior to a service in code.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: