Creating per-request controller/action based formatters in ASP.NET 5
问题 I'm trying to implement HATEOAS in my ASP rest API, changing the ReferenceResolverProvider . The problem is, that depending on which controller I use, I'd like to use different ReferenceResolvers , because I need to behave differently for each Controller. Now I have universal options: services.AddMvc() .AddJsonOptions(option => option.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver()) .AddJsonOptions(options => options.SerializerSettings