In my authorization attribute code, I would like to determine which WebAPI method was called.
I appreciate that I can do this by passing the name to (see example 2), but I would prefer not to.
[CustomAuthAttribute]
public MyResponse get(string param1, string param2)
{
...
}
[CustomAuthAttribute(MethodName = "mycontroller/get")]
public MyResponse get(string param1, string param2)
{
...
}
Is there any way that I can somehow raise it?
source
share