ServiceHostBase.IncrementManualFlowControlLimit Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Increases the limit on the flow rate of messages to the hosted service by a specified increment.

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

public int IncrementManualFlowControlLimit(
	int incrementBy
)

Parameters

incrementBy
Type: System.Int32

The number of messages by which to increase the flow control limit.

Return Value

Type: System.Int32

The new limit after the increment is added.

Exception Condition
ArgumentOutOfRangeException

The value is less than zero.

This limit can be accessed using the ManualFlowControlLimit property.

int newLimit = hostDefault.IncrementManualFlowControlLimit(100);

.NET Framework
Available since 3.0
Return to top
Show: