I'm writing a global action filter and would like to determine if the currect action is asynchronous. However the ActionExecutingContext doesn't expose any properties for me to make this determination. I can get a handle on the controller if it is an AsyncController assume that the action is also asynchrous. However that doesn't guarantee that the current action is asynchronous since you can have a synchrouns action in a AsyncController.
We have a distributed team, so there is the potential for a filter to invoke a service asynchronously on a synchonous action. This particular filter needs to access the session store, which is unavailable in this scenario.
View Complete Post