Closed smolchanovsky closed 2 years ago
When creating a client via DI, it is necessary to use the JsonSerializerOptions added to the collection of services.
JsonSerializerOptions
services.Configure<JsonSerializerOptions>(options => { options.JsonSerializerOptions.PropertyNameCaseInsensitive = true; }); services.AddNClient<IFileClient>(host: "http://localhost:5001"); // Use JsonSerializerOptions from AddJsonOptions method
@Kingmidas74, do you wish to solve this problem? :)
When creating a client via DI, it is necessary to use the
JsonSerializerOptions
added to the collection of services.