HttpExceptionDescriptorResponseFormatterExtensions Class
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Http
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
Extension methods for the IHttpExceptionDescriptorResponseFormatter interface.
public static class HttpExceptionDescriptorResponseFormatterExtensions
- Inheritance
-
HttpExceptionDescriptorResponseFormatterExtensions
Examples
The following example demonstrates how to project all exception descriptor handlers from a sequence of formatters into a single enumerable sequence.
using System.Collections.Generic;
using System.Linq;
using Cuemon.AspNetCore.Diagnostics;
using Cuemon.Extensions.AspNetCore.Http;
namespace Examples;
public class FormatterHandlerProjection
{
public IEnumerable<HttpExceptionDescriptorResponseHandler> GetAllHandlers(IEnumerable<IHttpExceptionDescriptorResponseFormatter> formatters)
{
return formatters.SelectExceptionDescriptorHandlers();
}
}
Methods
| Name | Description |
|---|---|
| SelectExceptionDescriptorHandlers(IEnumerable<IHttpExceptionDescriptorResponseFormatter>) | Projects each element of ExceptionDescriptorHandlers from the specified |