C# - Should you reuse your HTTPClient? or dispose it after every request?
I have always been told to reuse the HttpClient throughout the application lifetime for better performance and stability. If you search for why, there are quite »
I have always been told to reuse the HttpClient throughout the application lifetime for better performance and stability. If you search for why, there are quite »
You can set default headers on the HttpClient using the DefaultRequestHeaders property: _httpClient.DefaultRequestHeaders.Add("MyFantasticHeader" ,"MyFantasticValue"); var result = await _httpClient.GetAsync( »
You are probably here because you have forgotten the syntax for returning a tuple from a method. To be honest that is also the reason why »
There are two reasons you are on this page: 1) you forgot the syntax for named tuples 2) You have just learned about named tuples and »
You can use the SqlConnection class to connect to a MSSQL server. If we have a database called MyDb with a simple table called MyEntities: CREATE »
You can easily fetch tables from websites in your Google sheets. To do this you can use the IMPORTTABLE function, which has the following signature: IMPORTHTML( »
I was quite annoyed back when the Ghost team introduced a lot of bloated scripts on what I believed should be the fastest and simplest blogging »
I wanted to make my website score a little bit better on Google pagespeed and one area was the size of my images. I use background »
I recently got the following error when trying to build a solution after installing a nuget package: > Warning CS8032 An instance of analyzer ProxyInterfaceSourceGenerator.ProxyInterfaceCodeGenerator »
If you see the following error: > NSubstitute.Exceptions.CouldNotSetReturnDueToNoLastCallException : Could not find a call to return from. You are likely trying to mock a method »