« first day (3843 days earlier)      last day (1107 days later) » 

mr5
9:22 AM
Please suggest a more optimal way to do this.
 
10:23 AM
[Not Li] You trying to make your own json deserialiser or something
 
mr5
No. It's a JSON Path to object thing
I know there's a lot of wrong assumption I made there but here's one I want to get rid off first:
var value = typeof(T) == typeof(string) ?
	$"\"{first.Value}\"":
	$"{first.Value}";
 
 
1 hour later…
 
3 hours later…
2:30 PM
Can anyone tell me if this there are any problems with this code, looking from an async perspective pastebin.com/h6mKwbaP
 
mr5
you need to check for null content
as well an ensure the right status code is what you are expecting before deserializing the body
your cancellationtoken is useless there
you obviously want to use it to cancel the request by the caller, but your implementation is a "throw away"
and I'm assuming a -1 timeout means infinite, in that case, that is a problem.
 
3:28 PM
[Not Li] I still dont get why people use restclient
 

« first day (3843 days earlier)      last day (1107 days later) »