When using HttpClient.SendAsync() to access a resource that might take a while to process it can be advantageous to detect when the connection has been disconnected. This can be done using a CancellationToken passed to the HttpClient.SendAsync() method.… more »
Tag: "core"
Posted by robert on Jun 04, 2021 in .net
When writing an asp.net core application you often need to be able to perform some operations in a development environment that you would not perform in production. This could be for the purposes of debugging or for performance. It could also be that you need to be able to test various features or provide new features in development that you do not want in the release or production environment… more »
When creating a console application you often want to be able to use command line arguments to control what the application does. In this post we explore how we can use System.CommandLine to build a command line application. System.CommandLine is an… more »
Add GitHub Actions While not really necessary for writing a simple application I like to add GitHub actions to projects. This helps to automate the building and testing of changes to ensure that we don't accidently introduce known defects. In the root… more »