Creating a RestSharp Authenticator

RestSharp has recently released a major new version with a lot of breaking changes. One of the things to change was custom authenticators which now seem to be less obvious to use. The documentation suggests creating a custom authenticator by inheriting from IAuthenticator but this doesn’t seem to work and Read more

Pascal Case Naming in Newtonsoft

When serializing object to JSON using Newtonsoft it’s possible to change the naming of the properties by updating the serializer naming conventions as detailed here. It’s also possible to create your own custom naming strategy if none of the inbuild ones do the dop. This can be done by inheriting Read more

RestSharp Response Character Encoding

I’m currently using RestSharp as a client for downloading product details, however it appears that the response from the server (which I have no control over) is encoded in a differerent character set (ISO-8859-1) than RestSharp is expecting (UTF-8). This means that although most characters are converted as expected, some Read more