Class ApiValidationFilter
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method)]
public class ApiValidationFilter : Attribute, _Attribute, IAuthenticationFilter, IFilter
- Inheritance
-
ApiValidationFilter
- Implements
- Inherited Members
Constructors
ApiValidationFilter()
public ApiValidationFilter()
Properties
AllowMultiple
Gets or sets a value indicating whether more than one instance of the indicated attribute can be specified for a single program element.
public bool AllowMultiple { get; }
Property Value
- bool
true if more than one instance is allowed to be specified; otherwise, false. The default is false.
LogLocalApiRequests
public bool LogLocalApiRequests { get; }
Property Value
Methods
AuthenticateAsync(HttpAuthenticationContext, CancellationToken)
Authenticates the request.
public Task AuthenticateAsync(HttpAuthenticationContext context, CancellationToken cancellation)
Parameters
contextHttpAuthenticationContextThe authentication context.
cancellationCancellationToken
Returns
- Task
A Task that will perform authentication.
ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)
public Task ChallengeAsync(HttpAuthenticationChallengeContext context, CancellationToken cancellation)
Parameters
contextHttpAuthenticationChallengeContextcancellationCancellationToken