Table of Contents

UserAgentSentinelOptions Constructor

Definition

UserAgentSentinelOptions()

Initializes a new instance of the UserAgentSentinelOptions class.

public UserAgentSentinelOptions()

Remarks

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

PropertyInitial Value
AllowedUserAgentsnew List{string}();
BadRequestMessageThe requirements of the request was not met.
ForbiddenMessageThe HTTP User-Agent specified was rejected.
RequireUserAgentHeaderfalse
ValidateUserAgentHeaderfalse
ResponseHandlerA HttpResponseMessage initialized to either a HTTP status code 400 or 403 and a body of either BadRequestMessage or ForbiddenMessage.
UseGenericResponsefalse