ArmWebPubSubModelFactory.WebPubSubThrottleByJwtCustomClaimRule Method

Definition

public static Azure.ResourceManager.WebPubSub.Models.WebPubSubThrottleByJwtCustomClaimRule WebPubSubThrottleByJwtCustomClaimRule(string claimName = default, int? maxCount = default);
static member WebPubSubThrottleByJwtCustomClaimRule : string * Nullable<int> -> Azure.ResourceManager.WebPubSub.Models.WebPubSubThrottleByJwtCustomClaimRule
Public Shared Function WebPubSubThrottleByJwtCustomClaimRule (Optional claimName As String = Nothing, Optional maxCount As Nullable(Of Integer) = Nothing) As WebPubSubThrottleByJwtCustomClaimRule

Parameters

claimName
String

The name of the claim in the JWT token. The client connection with the same claim value will be aggregated. If the claim is not found in the token, the connection will be allowed.

maxCount
Nullable<Int32>

Maximum connection count allowed for the same Jwt claim value. Clients with the same Jwt claim will get rejected if the connection count exceeds this value. Default value is 20.

Returns

A new WebPubSubThrottleByJwtCustomClaimRule instance for mocking.

Applies to