Posts Tagged: aspnetcore
Here you can find articles that have been tagged: aspnetcore
Posts In 2024
The Smartest Way to Onboard Developers (Video)
Published by Stuart Blackler on: 2024-01-01. Tagged:dotnetaspnetcore
Change happens. People will leave your team and people join your team. But what if there was an easy way to get new people up to speed in minutes, not weeks. Imagine clippy could hold your hand through a code base which you can easily refer back to at any time. The best bit? Anyone can do this.
Posts In 2022
The Way You Publish Apps Is Changing | .NET 7 (Video)
Published by Stuart Blackler on: 2022-11-15. Tagged:dotnetaspnetcore
Go from zero to docker image in 30 seconds! In this video, we’re going to discuss the changes that are happening with publishing apps in .NET 7. I’ll show you how to make the changes backwards compatible with .NET 6 and how to customize your experience.
Mocking APIs Made Easy With Mockaco (Video)
Published by Stuart Blackler on: 2022-10-07. Tagged:dotnetaspnetcore
Mockaco is an HTTP-based dotnet API mocking server with fast setup - great for when you need to setup a mock API to test locally. As Mockaco is also a docker image, we can utilize this in our build pipelines to get some confidence in our tests without requiring external dependencies.
ASP.NET Core Versioning: Minimal APIs (Article)
Published by Stuart Blackler on: 2022-10-04. Tagged:dotnetaspnetcore
This blog post is also available as a video on my YouTube Channel. If your API is a key part of your product you are going to want to version your APIs. One of the major reasons that we consider versioning our api’s is so that we provide a consistent experience for our users. If we consistently change our API’s then our consumers will break, they will get annoyed and eventually leave our product. ASP.NET Core Versioning: MVC APIs (Article)
Published by Stuart Blackler on: 2022-09-30. Tagged:dotnetaspnetcore
This blog post is also available as a video on my YouTube Channel. If your API is a key part of your product you are going to want to version your APIs. One of the major reasons that we consider versioning our api’s is so that we provide a consistent experience for our users. If we consistently change our API’s then our consumers will break, they will get annoyed and eventually leave our product. Pro Testing With Xunit & Localstack (Article)
Published by Stuart Blackler on: 2022-09-25. Tagged:dotnetaspnetcore
This blog post is also available as a video on my YouTube Channel.
Ever wondered how to get docker images to run nicely with XUnit tests? Then you’re in the right place. Let me show you how to setup Localstack with XUnit properly so that the only thing you need to worry about is having docker running. I’m using Localstack as the example but you can repeat a very similar process using the techniques shown here.
How to Version ASP.NET Core MVC & Minimal APIs (Video)
Published by Stuart Blackler on: 2022-09-13. Tagged:dotnetaspnetcore
Versioning API’s can be extremely important for your product. Learn 4 different ways to version your APIs in .NET minimal APIs and .NET MVC APIs. The techniques you’ll learn are: content type negotiation versioning, custom headers versioning, query string versioning and URL versioning.
Using PASETO in .NET - #Shorts (Video)
Published by Stuart Blackler on: 2022-08-18. Tagged:dotnetaspnetcore
For the full video, go here: https://www.youtube.com/watch?v=oNQdDjvS_54
Creating a restricted file download with S3 is easy with pre-signed URLs. But what your endpoint isn’t a file? Or you’re not sourcing it from S3? In this video, we take a look at an upcoming technology called PASETO (platform agnostic security token) and see how to create an endpoint that is restricted by time.
A New Way to Create Time Restricted Endpoints in .NET (Video)
Published by Stuart Blackler on: 2022-08-15. Tagged:dotnetaspnetcore
Creating a restricted file download with S3 is easy with pre-signed URLs. But what your endpoint isn’t a file? Or you’re not sourcing it from S3? In this video, we take a look at an upcoming technology called PASETO (platform agnostic security token) and see how to create an endpoint that is restricted by time.
Posts In 2020
Implementing Simple Feature Toggles in AspNetCore Using IConfiguration (Article)
Published by Stuart Blackler on: 2020-08-29. Tagged:dotnetaspnetcore
Recently, we’ve had the need to build a few feature toggles in our applications that can be changed at runtime. This article walks through a simple approach that you can use in your applications, including a description of a route to dynamic feature toggles.
Diagnostics in .Net Core 3: Listening to Inbound HTTP Requests (Article)
Published by Stuart Blackler on: 2020-06-19. Tagged:dotnetaspnetcore
In my previous article we took a look at how to monitor outbound HTTP requests using a
DiagnosticListener
. In this article, we will re-use some of the same components to monitor inbound HTTP requests. We could use middleware to do as most approaches do, but this approach is highly dependent on the middleware that you have and the duration of this, so we will re-use some of the code from last time.
Posts In 2018
Utf8Json Media Formatters for ASP.Net Core (Article)
Published by Stuart Blackler on: 2018-07-29. Tagged:dotnetaspnetcore
Recently, I have been looking at the Utf8Json project and evaluating for use in our high performance payments API. Looking at the benchmarks on the Github page, and running my own benchmarks, the numbers stated seemed to tally up, so I built a few media formatters for aspnet core.
Automated Builds in VSTS With YML Build Definitions (Article)
Published by Stuart Blackler on: 2018-06-17. Tagged:dotnetdevopsaspnetcore
In this article we will explore a preview feature inside of Visual Studio Team Services (VSTS) called YML Build Definitions. In essence, this allows you to change your build process from a
.yml
file in your git repository much in the same way as you can do with other services such as AppVeyor. During the article, we will setup a build definition for an Aspnet Core website.
Posts In 2014
Enabling HTTP Strict Transport Security HSTS via ASP Net MVC ActionFilters (Article)
Published by Stuart Blackler on: 2014-04-21. Tagged:dotnetaspnetcore
After reading Troy Hunt’s free ebook on the OWASP Top 10 for .Net Developers, I discovered an additional mechanism to help developers secure their websites. That mechanism is HTTP Strict Transport Security.