Skip to content
Documentation

ProblemDetailsServiceExtensions Class

Provides additional methods for writing RFC7807 problem details to HTTP responses.

public static class ProblemDetailsServiceExtensions

Inheritance System.Object 🡒 ProblemDetailsServiceExtensions

ProblemDetailsServiceExtensions.WriteAsync(this IProblemDetailsService, HttpContext, HakomException) Method

Section titled “ProblemDetailsServiceExtensions.WriteAsync(this IProblemDetailsService, HttpContext, HakomException) Method”

Writes an RFC7807 problem-details object to an HTTP response based on a HakomException.

public static System.Threading.Tasks.Task WriteAsync(this Microsoft.AspNetCore.Http.IProblemDetailsService problemDetailsService, Microsoft.AspNetCore.Http.HttpContext httpContext, HAKOM.ErrorHandling.Core.Net.Api.HakomException hakomException);

problemDetailsService Microsoft.AspNetCore.Http.IProblemDetailsService

The Microsoft.AspNetCore.Http.IProblemDetailsService to use for writing.

httpContext Microsoft.AspNetCore.Http.HttpContext

The current Microsoft.AspNetCore.Http.HttpContext.

hakomException HakomException

The HakomException for which to generate a problem-details response

System.Threading.Tasks.Task
A System.Threading.Tasks.Task that completes when the response has been written.

© 2026 Volue.Version v0.6.38017 November 2026