InstanceContext.ManualFlowControlLimit Vlastnost

Definice

Získá nebo nastaví limit počtu zpráv, které lze zpracovat kontextem instance.

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

Hodnota vlastnosti

Int32

Počet zpráv, které lze zpracovat kontextem instance.

Příklady

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.ManualFlowControlLimit = 100;
}

Poznámky

ManualFlowControlLimit Pokud hodnota dosáhne nuly, nebude možné zpracovat žádné další zprávy.

Platí pro