For anyone that wants to do the same... Here is the solution:
public class PlainTextResponseActionFilter : ActionFilterAttribute, IActionFilter, IFilter
{
public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
{
var abpAjaxContent = actionExecutedContext.Response.Content as ObjectContent<Abp.Web.Models.AjaxResponse>;
if (abpAjaxContent != null)
{
var previousValue = abpAjaxContent.Value as Abp.Web.Models.AjaxResponse;
actionExecutedContext.ActionContext.Response.Content = new StringContent(previousValue.Result.ToString());
}
else
base.OnActionExecuted(actionExecutedContext);
}
}
DynamicApiControllerBuilder
.For<ISomeAppService>("app/some")
.ForMethod("Process")
.WithVerb(Abp.Web.HttpVerb.Get)
.WithFilters(new PlainTextResponseActionFilter())
.Build();
40 views but no response?
Yes. I have.