You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.
public void ConfigureServices(IServiceCollection services)
{
services.AddSingleton(new JsonSerializerSettings { ContractResolver = new DefaultContractResolver { NamingStrategy = new CamelCaseNamingStrategy() }, NullValueHandling = NullValueHandling.Ignore});
}
Using Autofac I got the below error:
Cannot choose between multiple constructors with equal length 1 on type 'App.Metrics.Formatters.Json.Serialization.HealthStatusSerializer'. Select the constructor explicitly, with the UsingConstructor() configuration method, when the component is registered.
Removing Autofac and just using ASP.NET DI I got a exception about HealthStatusserializer and I think IClock
App Metrics has never registered JsonSerializerSettings. The older version of HealthStatusSerializer had two ctors, one of which had JsonSerializerSettings injected so DI could not work out which ctor to use.
From @jchannon on December 4, 2017 19:52
Using Autofac I got the below error:
Removing Autofac and just using ASP.NET DI I got a exception about HealthStatusserializer and I think IClock
Copied from original issue: AppMetrics/AspNetCore#4
The text was updated successfully, but these errors were encountered: