Table of Contents

ApiKeySentinelOptions Constructor

Definition

ApiKeySentinelOptions()

Initializes a new instance of the ApiKeySentinelOptions class.

public ApiKeySentinelOptions()

Remarks

The following table shows the initial property values for an instance of UserAgentSentinelOptions.

PropertyInitial Value
HeaderNameXApiKey
AllowedKeysnew List{string}();
GenericClientMessageThe requirements of the request was not met.
GenericClientStatusCodeBadRequest
ForbiddenMessageThe API key specified was rejected.
ResponseHandlerA HttpResponseMessage initialized to either a HTTP status code 400 or 403 and a body of either GenericClientMessage or ForbiddenMessage.
UseGenericResponsefalse