共用方式為


InstanceContext.IncrementManualFlowControlLimit(Int32) 方法

定義

增加執行個體內容可處理的訊息數量。

public:
 int IncrementManualFlowControlLimit(int incrementBy);
public int IncrementManualFlowControlLimit (int incrementBy);
member this.IncrementManualFlowControlLimit : int -> int
Public Function IncrementManualFlowControlLimit (incrementBy As Integer) As Integer

參數

incrementBy
Int32

執行個體內容可處理的訊息量的增量。

傳回

加上 incrementBy 之後,服務執行個體可處理的訊息數量新限制。

範例

Uri baseAddress = new Uri("http://localhost:8000/ServiceModelSamples/service");

// Create a ServiceHost for the CalculatorService type and provide the base address.
using (ServiceHost serviceHost = new ServiceHost(typeof(CalculatorService), baseAddress))
{
    serviceHost.Open();
    OperationContext operationContext = OperationContext.Current;
    InstanceContext instanceContext = operationContext.InstanceContext;
    instanceContext.IncrementManualFlowControlLimit(100);
}

適用於