WebPubSubThrottleByJwtCustomClaimRule Class

Definition

Throttle the client connection by a custom JWT claim.

public class WebPubSubThrottleByJwtCustomClaimRule : Azure.ResourceManager.WebPubSub.Models.WebPubSubClientConnectionCountRule, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.WebPubSub.Models.WebPubSubThrottleByJwtCustomClaimRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.WebPubSub.Models.WebPubSubThrottleByJwtCustomClaimRule>
type WebPubSubThrottleByJwtCustomClaimRule = class
    inherit WebPubSubClientConnectionCountRule
    interface IJsonModel<WebPubSubThrottleByJwtCustomClaimRule>
    interface IPersistableModel<WebPubSubThrottleByJwtCustomClaimRule>
Public Class WebPubSubThrottleByJwtCustomClaimRule
Inherits WebPubSubClientConnectionCountRule
Implements IJsonModel(Of WebPubSubThrottleByJwtCustomClaimRule), IPersistableModel(Of WebPubSubThrottleByJwtCustomClaimRule)
Inheritance
WebPubSubThrottleByJwtCustomClaimRule
Implements

Constructors

Name Description
WebPubSubThrottleByJwtCustomClaimRule(String)

Initializes a new instance of WebPubSubThrottleByJwtCustomClaimRule.

Properties

Name Description
ClaimName

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

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.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<WebPubSubClientConnectionCountRule>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from WebPubSubClientConnectionCountRule)
IJsonModel<WebPubSubClientConnectionCountRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from WebPubSubClientConnectionCountRule)
IJsonModel<WebPubSubThrottleByJwtCustomClaimRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<WebPubSubThrottleByJwtCustomClaimRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<WebPubSubClientConnectionCountRule>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from WebPubSubClientConnectionCountRule)
IPersistableModel<WebPubSubClientConnectionCountRule>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from WebPubSubClientConnectionCountRule)
IPersistableModel<WebPubSubClientConnectionCountRule>.Write(ModelReaderWriterOptions) (Inherited from WebPubSubClientConnectionCountRule)
IPersistableModel<WebPubSubThrottleByJwtCustomClaimRule>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<WebPubSubThrottleByJwtCustomClaimRule>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<WebPubSubThrottleByJwtCustomClaimRule>.Write(ModelReaderWriterOptions)

Applies to