Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Boosting the performance of Azure Functions using Isolated .NET Core is a great way to ensure that your serverless applications are both scalable and efficient. In this example, we'll walk through a real-world use case and provide a coding example to demonstrate how to optimize Azure Functions with Isolated .NET Core.

Securing secrets in .NET/ASP.NET Core applications using Azure Key Vault is crucial for maintaining the confidentiality and integrity of sensitive information such as API keys, connection strings, and certificates. In this example, I'll walk you through the steps to integrate Azure Key Vault into an ASP.NET Core application to keep secrets safe in real time.

Get started with understanding the basics of CQRS and it's simple implementation using the MediatR Nuget package in ASP.NET Core Web API

ASP.NET Core Web API, along with a real-world use case, can be a powerful way to demonstrate the capabilities of serverless computing in Azure. In this example, we'll create a serverless Azure Function that processes image uploads to a cloud storage service like Azure Blob Storage. When a user uploads an image through the ASP.NET Core Web API, the Azure Function will be triggered to perform some image processing and then save the processed image back to storage.

SignalR to enable real-time communication between clients and a server. SignalR is a library for ASP.NET that allows you to build real-time, interactive web applications. In this example, we'll create a simple chat application where clients can send and receive messages in real-time.

By implementing this approach, you create a hassle-free way for users to generate and download Excel sheets from your web application, improving data reporting and export capabilities. This can be particularly useful in scenarios where users need to work with tabular data in Excel format without manual data entry or complicated procedures.

To containerize a .NET Core 7 Console Application using Docker, you'll need to create a Dockerfile, which is a script that specifies how to build the Docker image for your application. Here's a step-by-step guide to help you with this process:

This example provides a foundational structure for real-time communication in ASP.NET Core using WebSockets. You can expand upon this foundation to create more complex real-time applications, such as chat rooms, notifications, or collaborative editing tools, by adding features like authentication, user management, and message persistence.

Implementing localization and globalization in an ASP.NET Core Web API involves configuring the application to support multiple languages and cultures, and then using resource files to provide translated content. Here, I'll provide a step-by-step example of how to achieve this. In this example, we'll create a simple Web API that supports English and Spanish languages.

Creating comprehensive API documentation for an ASP.NET Core Web API using tools like Swagger/OpenAPI or NSwag is a crucial step in ensuring that your API is well-documented and easy for other developers to understand and use. Below, I'll provide you with a step-by-step example of how to generate API documentation using Swagger/OpenAPI in an ASP.NET Core Web API project.

writing unit tests, integration tests, and end-to-end tests for a Web API using xUnit testing framework in ASP.NET Core. Keep in mind that I won't be able to provide you with actual working code, but I'll give you a detailed example that you can adapt to your project.

In a web application, there are tasks that need to be performed in the background, such as sending emails, processing data, or performing regular maintenance. These tasks are often non-HTTP-related and can be time-consuming, so it's best to offload them from the main request-response cycle. In ASP.NET Core, you can use hosted services and background workers to accomplish this.

In this article, you will learn about Rate Limiting Middleware in .NET 7.

ASP.NET Core is a great way to monitor the status and health of your API services. Health checks allow you to periodically test the different components of your application and ensure they are functioning properly. Here's a complete example of how to implement health checks in an ASP.NET Core application.

Data Annotations are attributes provided by the System.ComponentModel.DataAnnotations namespace in C#. They allow you to declaratively specify validation rules and constraints directly within your model classes.

Dependency Injection (DI) is a design pattern used in software development to achieve loosely coupled components by allowing the injection of dependencies into a class rather than creating them within the class. This promotes better code reusability, testability, and maintainability. In the context of Dependency Injection, an Inversion of Control (IoC) container is a tool that manages the injection of dependencies.

Build a .NET 7 C# console app that reads active recipients from SQL Server with Entity Framework Core and sends bulk email in SMTP batches.

Action filters are an integral part of many modern web frameworks, including ASP.NET MVC, ASP.NET Core, and others. They allow you to intercept and modify the request and response pipeline for an application's actions or methods. Action filters provide a way to apply cross-cutting concerns, such as authentication, logging, validation, caching, and more, to multiple actions or controllers without duplicating code.

In this article, let us discuss the importance of cache notifications in building an event driven application and how we can implement such a mechanism with an example in NCache

In ASP.NET, model binding simplifies the process of mapping incoming HTTP request data to the parameters of controller actions or methods. This process ensures that the data provided by the user is appropriately converted and validated before being used by the application. However, there are cases when the default model binding behavior may not be sufficient. In such scenarios, custom model binders can be created to handle specific data types or complex binding logic.

Designing a robust error handling mechanism and returning meaningful error responses to clients is crucial for enhancing the reliability and user experience of your ASP.NET Core Web API. Here's a concise guide on how to achieve this using custom middleware:

In this article, we will be looking at how to use SQL Server 2017 Docker image.

By incorporating pagination and filtering with custom middleware, you've enhanced your ASP.NET Core Web API's performance and user experience. This methodology enables you to respond more efficiently to client requests, particularly when dealing with large amounts of data. By providing a streamlined API that delivers the right data in a user-friendly manner, you're well-prepared to offer a high-quality experience to your API users.

Learn practical .NET Core performance techniques, including profiling, caching, database and Entity Framework optimization, async programming, memory management, HTTP caching, and compression.

Dependency Injection (DI) is a fundamental software engineering pattern that fosters loose coupling and component modularity. In ASP.NET Core, DI streamlines managing component dependencies, enhancing development, testing, and maintenance.

Unit testing in C# with NUnit in .NET Core involves using the NUnit testing framework to create and run unit tests for your C# code within a .NET Core application. NUnit is a popular testing framework that provides a convenient and structured way to verify the correctness of individual units of code, such as methods and functions, in isolation from the rest of the application.

NLog, the open-source logging library for .NET and .NET Core, simplifies error troubleshooting. Install effortlessly, configure with nlog.config, and leverage diverse logging levels for precise insights into your application.

API versioning with custom middleware, enables clients to access different versions of your API based on the version specified in the request header. This allows you to manage backward compatibility while rolling out new features or changes in a controlled manner. Custom middleware provides a central point for extracting and validating version information, making your versioning logic more modular and maintainable.

Performance Optimization in ASP.NET Core involves employing various strategies to enhance the speed, responsiveness, and efficiency of web applications. This article provides insights into essential optimization techniques, supported by clear code explanations. From leveraging caching and asynchronous programming to minimizing database queries and utilizing content delivery networks (CDNs), these strategies ensure smoother user experiences and streamlined application performance. By delving into real-world examples, this article equips developers with the knowledge to make informed decisions when fine-tuning their ASP.NET Core applications for optimal performance.

Discover the power of Dependency Injection (DI) in ASP.NET Core with this comprehensive guide. Dive into the world of IoC (Inversion of Control) principles and learn how DI promotes modular, maintainable, and testable code. Explore the reasons behind using DI in ASP.NET Core applications and unlock its benefits, including enhanced reusability, flexibility, and easier testing. Follow step-by-step instructions to implement DI, from service registration to constructor injection. Understand different dependency lifetimes and explore advanced features like named services and conditional registration. Embrace Dependency Injection to elevate your ASP.NET Core development skills and build robust, scalable applications with ease.
Everything on .NET Core, not only its articles: the .NET Core page →
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article