public override async Task OnActionExecutingAsync(HttpActionContext actionContext, CancellationToken cancellationToken) { if (actionContext.IsAsyncCommandAction()) { await OnSetupCommandContextsAsync(); } await base.OnActionExecutingAsync(actionContext, cancellationToken); }