Class YamlConverterExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.dll
Extension methods for the YamlConverter class.
public static class YamlConverterExtensions
- Inheritance
-
ObjectYamlConverterExtensions
Methods
AddExceptionDescriptorConverter(ICollection<YamlConverter>, Action<YamlFormatterOptions>)
Adds an ExceptionDescriptor YAML converter to the list.
public static ICollection<YamlConverter> AddExceptionDescriptorConverter(this ICollection<YamlConverter> converters, Action<YamlFormatterOptions> setup = null)
Parameters
converters
ICollection<YamlConverter>The ICollection{YamlConverter} to extend.
setup
Action<YamlFormatterOptions>The ExceptionDescriptorOptions which may be configured.
Returns
- ICollection<YamlConverter>
A reference to
converters
after the operation has completed.
AddHttpExceptionDescriptorConverter(ICollection<YamlConverter>, Action<YamlFormatterOptions>)
Adds an HttpExceptionDescriptor YAML converter to the list.
public static ICollection<YamlConverter> AddHttpExceptionDescriptorConverter(this ICollection<YamlConverter> converters, Action<YamlFormatterOptions> setup = null)
Parameters
converters
ICollection<YamlConverter>The ICollection{YamlConverter} to extend.
setup
Action<YamlFormatterOptions>The ExceptionDescriptorOptions which may be configured.
Returns
- ICollection<YamlConverter>
A reference to
converters
after the operation has completed.