|
AuthenticationService
v0.2.0
|
An attribute that can be used to validate action input before the action is exectued. More...
Public Member Functions | |
| PreActionValidationAttribute () | |
| Creates an new instance. More... | |
| Task< HttpResponseMessage > | ExecuteActionFilterAsync (HttpActionContext actionContext, CancellationToken cancellationToken, Func< Task< HttpResponseMessage >> continuation) |
| Executes the filter action asynchronously. More... | |
| void | OnActionExecuting (HttpActionContext actionContext) |
| The validation before the action is executed. More... | |
Public Attributes | |
| bool | AllowMultiple => false |
| Determines if muultiple of this attribute can be used. More... | |
An attribute that can be used to validate action input before the action is exectued.
| Joutsen.AuthenticationService.PreActionValidationAttribute.PreActionValidationAttribute | ( | ) |
Creates an new instance.
| Task<HttpResponseMessage> Joutsen.AuthenticationService.PreActionValidationAttribute.ExecuteActionFilterAsync | ( | HttpActionContext | actionContext, |
| CancellationToken | cancellationToken, | ||
| Func< Task< HttpResponseMessage >> | continuation | ||
| ) |
Executes the filter action asynchronously.
| actionContext | the context of the action this attribute acts as a filter for |
| cancellationToken | the cancellation token assigned for this task |
| continuation | the delegate function to continue after the filter method is invoked. This delegate is only invoked if the validation passed successfully. |
| void Joutsen.AuthenticationService.PreActionValidationAttribute.OnActionExecuting | ( | HttpActionContext | actionContext | ) |
The validation before the action is executed.
| actionContext | the context of the action this attribute acts as a filter for |
| bool Joutsen.AuthenticationService.PreActionValidationAttribute.AllowMultiple => false |
Determines if muultiple of this attribute can be used.
It makes little sense to do so, therefore this property is always false.
1.8.13