bitScry

  • Home
  • About
  • Blog
  • Contact

RestSharp

About this site

This is a blog to help me remember some of the coding challenges I’ve faced and hopefully help others out if they’re suffering the same problems.

Recent Posts
  • Cloning a Private Repository in a GitHub Workflow
  • Installing Multiple .NET Versions in GitHub Actions
  • Serving Images from Blob Storage in an Azure Function
  • Redis Caching in .NET
  • Passing Environment Variables From Docker to .NET Web App
Tag Cloud

.NET .NET Core AAD API ASP.NET Core Authentication Azure Azure Active Directory Azure Function Azure Storage Blob Bootstrap C# Console Application CSS DataTable Dependency Injection Dictionary Entity Framework Enum Extension Google GZip HTML Image JavaScript jQuery JSON List Middleware MVC Newtonsoft RestSharp Serilog SQL SSDT SSIS Stored Procedure Stream Table Table Storage Test Web App Web Application WordPress

Programming

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…

By Shinigami, 2 years22 March 2022 ago
Programming

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…

By Shinigami, 2 years20 October 2021 ago
Programming

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…

By Shinigami, 3 years24 September 2020 ago
Programming

RestSharp AWS S3 Authentication

I’ve been needing to access the AWS S3 API recently as part of a project and although there’s a pretty good client already available it didn’t quite meet my needs so I decided I needed to build my own client based on RestSharp. Unfortunatly although the API is pretty simple Read more…

By Shinigami, 3 years18 September 2020 ago
Programming

Azure Function Authenticator in RestSharp

There are various ways of authenticating against Azure Functions but the default method is by providing a code value as a URL parameter in the call to the endpoint. If you’re using RestSharp to call your function there’s no specific authenticator to manage handling this parameter but it is pretty Read more…

By Shinigami, 4 years24 January 2020 ago
  • Facebook
  • Twitter
  • Instagram
  • Email
Hestia | Developed by ThemeIsle