Latest Articles

Utf8Json Media Formatters for ASP.Net Core

Published by

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. Now, the project does already ship with some media formatters as a separate nuget package. However, I wanted to improve the following things:

Building Service Fabric Apps With VSTS YML Build Definitions

Published by

In my previous article, we setup a standarised build using the new YML build definitions within VSTS, using the .Net CLI tooling. In this article, we will use the same setup as our base, but we will build and publish a service fabric application. Our sample build file has the following steps: Clean Sources Install the Dotnet CLI Restore Packages Build Projects Test Projects Publish the Web App Publish Build Artifacts Tag VSTS Build For our service fabric build, we will need the following steps:

Automated Builds in VSTS with YML Build Definitions

Published by

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. Prerequisites Before we take a look at the struture of the file, you will need to complete the following tasks:

Ensuring samesite cookies with URL Rewrite

Published by

In this article, we will increase our websites level of protecting against Cross-Site Request Forgery and Cross-Site Script Inclusion attacks by appending an additional modifier to the Set-Cookie HTTP header.

Ensuring httpOnly cookies with URL Rewrite

Published by

In this article, I will give a brief overview of cookies, why we want them to be httpOnly and how we can ensure this via URL Rewrite. We will also be creating our first outbound rewrite rule with a pre-condition.

Canonical host urls with URL Rewrite

Published by

In the previous post, I gave a brief intoduction to URL Rewriting and showed you how to get from HTTP to HTTPS. In this article, I will show you how to have a canonical host url. What is a canonical host url? It can be incredibly easy to distribute different urls for your website. Lets say that we have www.site.com/post1 and site.com/post1. If you’re a search engine, you think that these are different different pages with the same content.