Changeset cd31c76245d2…
Parent 6861117da182…
by
Thai Nguyen
Changes to one file · Browse files at cd31c76245d2 Showing diff from parent 6861117da182 Diff from another changeset...
@@ -129,10 +129,6 @@ }
}
- public string RootElement { get; set; }
- public string Namespace { get; set; }
- public string DateFormat { get; set; }
-
public string ContentType
{
get => _contentType;
@@ -383,15 +379,15 @@ client.ClearHandlers();
if (req.JsonSerializer is IDeserializer existingDeserializer)
{
- client.AddHandler(existingDeserializer, "application/json", "text/json", "text/x-json", "text/javascript", "*+json", "text/plain");
+ client.AddHandler(() => existingDeserializer, "application/json", "text/json", "text/x-json", "text/javascript", "*+json");
}
else
{
var codec = new CustomJsonCodec(configuration);
- client.AddHandler(codec, "application/json", "text/json", "text/x-json", "text/javascript", "*+json", "text/plain");
+ client.AddHandler(() => codec, "application/json", "text/json", "text/x-json", "text/javascript", "*+json");
}
- client.AddHandler(new XmlDeserializer(), "application/xml", "text/xml", "*+xml", "*");
+ client.AddHandler(() => new XmlDeserializer(), "application/xml", "text/xml", "*+xml", "*");
client.Timeout = configuration.Timeout;
|
Loading...