Aracılığıyla paylaş


ChannelDispatcher.MaxTransactedBatchSize Özellik

Tanım

İşlem yapılan bir toplu iş için en büyük boyutu alır veya ayarlar.

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

Özellik Değeri

Int32

İşlem yapılan bir toplu iş için en büyük boyut.

Özel durumlar

Değer kümesi sıfırdan küçük.

İletişim nesnesi veya Opening Opened durumunda.

İletişim nesnesi veya Closing Closed durumunda.

İletişim nesnesi bir Faulted durumda.

Örnekler

Uri baseAddress = new Uri("http://localhost:8001/Simple");
ServiceHost serviceHost = new ServiceHost(typeof(CalculatorService), baseAddress);

serviceHost.AddServiceEndpoint(
    typeof(ICalculator),
    new WSHttpBinding(),
    "CalculatorServiceObject");

serviceHost.Open();

IChannelListener icl = serviceHost.ChannelDispatchers[0].Listener;
ChannelDispatcher dispatcher = new ChannelDispatcher(icl);

dispatcher.MaxTransactedBatchSize = 10;
Dim baseAddress As New Uri("http://localhost:8001/Simple")
Dim serviceHost As New ServiceHost(GetType(CalculatorService), baseAddress)

serviceHost.AddServiceEndpoint(GetType(ICalculator), New WSHttpBinding(), "CalculatorServiceObject")

serviceHost.Open()

Dim icl As IChannelListener = serviceHost.ChannelDispatchers(0).Listener
Dim dispatcher As New ChannelDispatcher(icl)

dispatcher.MaxTransactedBatchSize = 10

Açıklamalar

MaxTransactedBatchSize özelliği yalnızca örneği ChannelDispatcher Created durumunda olduğunda ayarlanabilir, çünkü bu hem değiştirilebilir hem de atılmayan tek durumdur.

Şunlara uygulanır