Class YamlConverterExtensions
- Assembly
- Codebelt.Extensions.AspNetCore.Text.Yaml.dll
Extension methods for the YamlConverter class.
public static class YamlConverterExtensions
- Inheritance
-
ObjectYamlConverterExtensions
Methods
AddHttpExceptionDescriptorConverter(ICollection<YamlConverter>, Action<ExceptionDescriptorOptions>)
Adds an HttpExceptionDescriptor YAML converter to the list.
public static ICollection<YamlConverter> AddHttpExceptionDescriptorConverter(this ICollection<YamlConverter> converters, Action<ExceptionDescriptorOptions> setup = null)
Parameters
converters
ICollection<YamlConverter>The ICollection{YamlConverter} to extend.
setup
Action<ExceptionDescriptorOptions>The ExceptionDescriptorOptions which may be configured.
Returns
- ICollection<YamlConverter>
A reference to
converters
after the operation has completed.
AddProblemDetailsConverter(ICollection<YamlConverter>)
Adds a Microsoft.AspNetCore.Mvc.ProblemDetails YAML converter to the collection.
public static ICollection<YamlConverter> AddProblemDetailsConverter(this ICollection<YamlConverter> converters)
Parameters
converters
ICollection<YamlConverter>The collection of YamlConverter to extend.
Returns
- ICollection<YamlConverter>
A reference to
converters
so that additional calls can be chained.