Integrate IndexNow with Umbraco CMS to submit content to search engines
Umbraco is very extensible for ASP.NET developers. Learn how to integrate IndexNow into the Umbraco backoffice, so you can easily submit Umbraco content URLs to search engines that they will (re)crawl.
Create ZIP files on HTTP request without intermediate files using ASP.NET MVC Framework
The ZipArchive wraps any stream to read, create, and update ZIP archives. You can send the result to the client using ASP.NET MVC Framework.
Don't use HttpContext.Current, especially when using async
Avoid using HttpContext.Current if possible, especially in asynchronous code. Use the properties provided on the Page or Controller instead and pass them on to the asynchronous code.
Download the right ChromeDriver version & keep it up to date on Windows/Linux/macOS using C# .NET
Chrome frequently updates automatically causing ChromeDriver versions to mismatch. Using C# .NET you can download the correct version of the ChromeDriver and keep it up-to-date.
Configure CORS using AppSettings or Custom Configuration Sections in ASP.NET Web API
Microsoft's CORS library works, but the attributes force you to hardcode the CORS headers. By creating custom CORS attributes, you can read the CORS configuration from AppSettings or a custom config section.
Configure ServicePointManager.SecurityProtocol through AppSettings
Usually .NET automatically finds a security protocol in common, but sometimes you have to update ServicePointManager.SecurityProtocol explicitly.
Changing Serilog Minimum level without application restart on .NET Framework and Core
There are many ways to configure Serilog. The configuration library has the additional advantage that it supports dynamic reloading of the MinimumLevel and LevelSwitches.
Using ConfigurationProviders from Microsoft.Extensions.Configuration on .NET Framework
.NET Core introduced new API's. Some of those libraries are built to support multiple .NET platforms including .NET Framework. So, if you're still using .NET Framework, you could also take advantage of these new libraries.