I hereby claim:
- I am simonhdickson on github.
- I am simonhdickson (https://keybase.io/simonhdickson) on keybase.
- I have a public key ASCse-S5cVnTAWCZ7cJ3Sy2lpefTh3cd2z9hbZEkoG7Y2Qo
To claim this, I am signing this object:
public class TokenValidationAttribute : ActionFilterAttribute | |
{ | |
public override void OnActionExecuting(HttpActionContext actionContext) | |
{ | |
var token = actionContext.Request.Headers.GetValues("Token").First(); | |
if (this.IsTokenValid(token)) | |
{ | |
base.OnActionExecuting(actionContext); | |
return; | |
} |
let (|MyPattern|_|) (|Number|_|) = function | |
| Number 1 -> Some MyPattern | |
| _ -> None | |
let doSomething = function 1 -> Some 1 | _ -> None | |
match 1 with | |
| MyPattern doSomething -> () | |
| _ -> () |
I hereby claim:
To claim this, I am signing this object: