Posts

ASP.NET Core 10 New Validation Features in Minimal APIs

Image
ASP.NET Core 10 New Validation Features in Minimal APIs ASP.NET Core 10 introduces built-in validation support for Minimal APIs. This is one of an important improvement because Minimal APIs can now validate incoming request data automatically before endpoint logic runs. In the sample API, validation is enabled by using the following line: builder.Services.AddValidation(); Once validation is enabled, ASP.NET Core can validate request body models, query string values, route values, and headers using familiar Data Annotations attributes such as [Required] , [Range] , [StringLength] , [EmailAddress] , and [RegularExpression] . What Are the New ASP.NET Core 10 Validation Features? ASP.NET Core 10 adds automatic validation support for Minimal API endpoints. Earlier, automatic validation was commonly associated with MVC controllers and the [ApiController] attribute. Minimal APIs were lightweight and simple, but developers often had to wri...

ASP.NET Core 9: Building a Order Processing Application with ASP.NET Core 9 and TickerQ

Image
In this article, we will build a complete Order Processing Application using ASP.NET Core 9 with TickerQ — a modern, source-generated background job scheduler for .NET. The application demonstrates how to accept orders through a web UI, store them in SQL Server, and automatically process them on a timed schedule using TickerQ's cron-based execution engine. What is TickerQ? TickerQ is a high-performance, modern job scheduler for .NET applications. Unlike traditional approaches such as IHostedService with Timer , or Hangfire, TickerQ leverages source generators at compile time — meaning zero runtime reflection, full AOT compatibility, and maximum performance. TickerQ supports two types of scheduled jobs: Time Tickers — One-off jobs scheduled to run at a specific future time. Cron Tickers — Recurring jobs defined using cron expressions (e.g., */1 * * * * for every minute). Key features of TickerQ include: Source-generated function registration : No ma...

Azure AI and ASP.NET Core: Building an AI-Powered Language Translator with Azure Translator Service, and GPT-4o

Image
In this article, we will build a complete ASP.NET Core 9 Razor View (MVC) application that accepts text or document files (.txt, .doc, .docx), auto-detects the source language using Azure AI Translator Service , lets the user choose a target language, and performs a meaningful, context-aware translation using Azure OpenAI GPT-4o . The application also features a real-time progress bar powered by SignalR that shows actual server-side step progression. What is Azure Translator Service? Azure Translator Service (part of Azure AI Services, formerly Cognitive Services) is a cloud-based Neural Machine Translation (NMT) service provided by Microsoft. It enables developers to add multi-language translation capabilities to their applications through a simple REST API or SDK. It offers the following core capabilities: Text Translation: Translate text between 100+ languages and dialects in real-time. Language Detection: Automatically detect the language of any input te...