How To
Sending JSON in .NET Core
1/10/2025 8:31:40 AM 86
In .NET Core, the Microsoft.Azure.Storage.Queue package has been replaced with the Azure.Storage.Queues package, and the CloudQueueMessage you used to send messages via queue.AddMessageAsync() has been simplified into the SendMessageAsync(string) method.
Writing Files Asynchronously with Multiple Threads in .NET Core
1/10/2025 8:29:52 AM 108
When building applications that need to write to a file from multiple threads, it's crucial to ensure thread safety and avoid race conditions.
Manipulating XML Google Merchant Data with C# and LINQ
1/10/2025 8:21:06 AM 71
When working with data from the Google Merchant Center, you often receive a Google Product Feed, typically in XML format, containing product information.
Set Local Folder for .NET Core in C#
1/10/2025 8:15:16 AM 69
When developing a .NET Core Worker Service, you can configure the service to run as a Windows Service using the following code.
Solr Search in .NET Core
1/10/2025 8:00:15 AM 160
.NET Core offers robust support for interacting with the Solr search engine.
Handling 415 Unsupported Media Type in .NET Core API
1/10/2025 7:53:51 AM 206
In .NET Core APIs, the default content type for incoming requests is application/json.
How to Remove Duplicates from a List with LINQ in C#
1/10/2025 7:45:24 AM 164
In C#, LINQ provides a simple way to remove duplicates from a list.
HttpClient Follow 302 Redirects in .NET Core
1/10/2025 7:36:57 AM 84
In .NET Core, the HttpClient class does not automatically follow HTTP redirects, including 302 (Found) and 301 (Moved Permanently) responses.
Accessing Users from IdentityServer in .NET Core
1/10/2025 7:31:21 AM 62
If you ever find yourself needing to directly access the IdentityServer users database, you might notice that the API can feel somewhat awkward.
API Versioning in C# .NET Core
1/10/2025 7:20:27 AM 87
In .NET Core, managing API versions is a critical aspect of maintaining backward compatibility and evolving your APIs without breaking existing clients.
Create a minimal API with ASP.NET Core
1/10/2025 7:10:20 AM 58
Ever wished you could skip all the boilerplate code that comes with controllers in your Web API?
Ignoring Namespaces in XML when Deserializing in C#
1/10/2025 4:34:55 AM 146
Namespaces in XML can be tricky to handle, especially when you're working with documents that sometimes include them and sometimes do not.