Class MvcBuilderExtensions
- Namespace
- Codebelt.Extensions.AspNetCore.Mvc.Formatters.Text.Yaml
- Assembly
- Codebelt.Extensions.AspNetCore.Mvc.Formatters.Text.Yaml.dll
Extension methods for the IMvcBuilder interface.
public static class MvcBuilderExtensions
- Inheritance
-
MvcBuilderExtensions
Methods
AddYamlFormatters(IMvcBuilder, Action<YamlFormatterOptions>)
Adds the YAML serializer formatters to MVC.
public static IMvcBuilder AddYamlFormatters(this IMvcBuilder builder, Action<YamlFormatterOptions> setup = null)
Parameters
builderIMvcBuilderThe IMvcBuilder.
setupAction<YamlFormatterOptions>The YamlFormatterOptions which may be configured.
Returns
- IMvcBuilder
A reference to
builderafter the operation has completed.
Exceptions
- ArgumentNullException
buildercannot be null -or-setupcannot be null.
AddYamlFormattersOptions(IMvcBuilder, Action<YamlFormatterOptions>)
Adds configuration of YamlFormatterOptions for the application.
public static IMvcBuilder AddYamlFormattersOptions(this IMvcBuilder builder, Action<YamlFormatterOptions> setup = null)
Parameters
builderIMvcBuilderThe IMvcBuilder.
setupAction<YamlFormatterOptions>The YamlFormatterOptions which need to be configured.
Returns
- IMvcBuilder
A reference to
builderafter the operation has completed.
Exceptions
- ArgumentNullException
buildercannot be null.