- C# Digest
- Posts
- How to improve memory allocation when creating HttpContent
How to improve memory allocation when creating HttpContent
#455 – May 22, 2023
In almost every application created in .NET, there will be a use case for making an outgoing HTTP call to an external resource. For some of these calls, especially when using POST and PUT verbs, a payload is usually attached to the HttpRequest object, most often in the form of a serialized JSON string.
Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that enables a server to specify any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources.
Object detection using local environments is now available in ML.NET Model Builder to help you solve computer vision problems using machine learning.
In this post, I demonstrate starting and stopping hosted services concurrently in .NET 8 using newly available HostOptions.
.NET 8 Preview 4 contains many exciting new features for the runtime and libraries, Native AOT improvements, modern build output and simplified paths, NuGet package security auditing, and much more!
We all use switch statements in our code. Do you use them at their full potential?
What if you allow folder and namespace structure to diverge?