Share via


ServiceBusOptions.MaxConcurrentCallsPerSession Property

Definition

Gets or sets the maximum number of concurrent calls to the function per session. Thus the total number of concurrent calls will be equal to MaxConcurrentSessions * MaxConcurrentCallsPerSession. The default value is 1. This applies only to functions that set IsSessionsEnabled to true. This does not apply for functions that receive a batch of messages. When Microsoft.Azure.WebJobs.Host.Scale.ConcurrencyOptions.DynamicConcurrencyEnabled is true, this value will be ignored, and concurrency will be increased/decreased dynamically.

public int MaxConcurrentCallsPerSession { get; set; }
member this.MaxConcurrentCallsPerSession : int with get, set
Public Property MaxConcurrentCallsPerSession As Integer

Property Value

The maximum number of concurrent calls to the message handler for each session that is being processed.

Exceptions

A value that is not positive is attempted to be set for the property.

Applies to