private async Task ExecuteProblemResultAsync(HttpContext context, Problem problem)
		{
			var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
			var executor = context.RequestServices.GetService<ObjectResultExecutor>() ?? _objectResultExecutor;
			var result = new ProblemResult(problem);
			await result.ExecuteResultAsync(executor, actionContext);
		}
 public ApiException(Problem problem)
 {
     Problem = problem;
 }
		public ProblemResult(Problem problem)
		{
			_problem = problem;
		}
 private static async Task WriteResponseBodyAsync(HttpContext context, Problem problem, ObjectResultExecutor objectResultExecutor)
 {
     var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
     var objectResult  = new ObjectResult(problem);
     await objectResultExecutor.ExecuteAsync(actionContext, objectResult);
 }
 public ApiException(Problem problem)
 {
     Problem = problem;
 }