Resolve Multiple Types In ASP.NET Core

Resolve Multiple Types In ASP.NET Core

Dependency injection (DI) isn’t a new concept in the .NET space, but the ASP.NET team made it a mainstream feature of ASP.NET Core. ASP.NET Core ships with a default service location mechanism that may behave differently than the previous inversion...

Build A Giphy Search With ASP.NET Core

Build A Giphy Search With ASP.NET Core

No matter how you choose to pronounce it, GIFs are a fantastic technology of our modern age. A correctly selected GIF can bring laughter, joy, and even comfort to both sender and recipient alike.

Implement A Webhook Framework With ASP.NET Core

Implement A Webhook Framework With ASP.NET Core

Let’s say we’re building a brand new HTTP API that supports webhooks, and we want the best for our ASP.NET consumers. We should document elements like endpoints, payloads, authentication, and responses our API expects from consumers. Documentation can be overwhelming...

Use ASP.NET With Turbolinks 5

Use ASP.NET With Turbolinks 5

The web development community has come a long way since the early days of the web. Building interactive web experiences can leave many developers in a state of paralysis. What web framework should we use? What transpiler should create my...

Add Headers To A Response In ASP.NET 5

Add Headers To A Response In ASP.NET 5

Hey folks, this is a short but crucial blog post for anyone writing custom middleware for ASP.NET. In this post, we’ll see how we can correctly add headers to an HTTP response and avoid the dreaded System.InvalidOperationException error.

Enrich HTML With ASP.NET Razor TagHelpers

Enrich HTML With ASP.NET Razor TagHelpers

Have you ever wanted to enrich HTML server-side before reaching the client? Of course, you have! The idea of declaring behavior and then having the tedious parts handled by a framework is what most developers want.

Read And Convert QueryCollection Values In ASP.NET

Read And Convert QueryCollection Values In ASP.NET

I recently worked on a proof of concept library that involves access to the web request at the HttpContext level. The library I’m building needs to register endpoints, and these endpoints need to process basic query string parameters. Fundamental stuff,...

Serialize Interface Instances With System.Text.Json

Serialize Interface Instances With System.Text.Json

On the spectrum of “chill” languages, JavaScript is on the higher end of permissible syntax. The ability to patch together a disparate group of values and treat them as one collection can help developers “get stuff done”. C# and .NET...

Remember ASP.NET Request Culture Using Middleware

Remember ASP.NET Request Culture Using Middleware

In the last post, we explored a jumpstart guide to working with a user’s request culture. While localization works out of the box, there seems to be a caveat when it comes to remembering the culture a user prefers.

ASP.NET Core Localization Jump Start

ASP.NET Core Localization Jump Start

Language is a core component of the human condition. According to the Washington Post, at least 50% of the world’s population is bilingual. That’s a fantastic statistic, that means every second user to our application could be bilingual. Sadly, most...