/// <summary> /// Configures MVC to use the Hypermedia formatters. /// </summary> /// <param name="builder">The builder to configure the options on.</param> /// <param name="contractResolver">The contract resolver to use for the formatters.</param> /// <returns>The builder to continue building on.</returns> public static IMvcBuilder AddHypermediaFormatters(this IMvcBuilder builder, IContractResolver contractResolver) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (contractResolver == null) { throw new ArgumentNullException(nameof(contractResolver)); } return(builder.AddHypermediaFormatters(contractResolver, DasherizedFieldNamingStrategy.Instance)); }