CI/CD with Azure Storage Static Sites

Static web hosting is now a thing in Azure Storage and is pretty easy to setup. There’s a small caveat with the CI/CD solution they’ve provided though.

Blog ported and next steps

Seems every time I logged into WordPress I’d have some kind of update to do and I had the bare minimum of plug-ins. Enough is enough.

Whirlwind of a Month

What a busy month! Taking a break from talking about the DieRoller (which I did put onto NuGet now), but so many other fun things have happened!

Die Roller - Abstracting dependencies on Random

When building the Die Roller, I had two main use cases for it. Determine the probability of a given roll configuration and provide a simulation of the roll with all the information about what took place. When it comes to unit testing, probability calculations are more straight forward. They make sure that the code returns the expected result. Simulations are much more difficult to test because rolling a die is inherently random. Which means of course that you have to abstract the randomness away for the purposes of the tests.

Die Roller - Outside In

So I went and did it again. Not too long after writing the last post did I realize I started from an angle I shouldn’t have. Again.

Die Roller - Starting off on the wrong foot

So as I alluded to in the first post, I wasn’t happy with the tiny bit of code that I had done so far. I literally had one class and one test just to get some probability calculations going. But there were two things that I didn’t like.

Die Roller – A Github Nuget Experiment

So a few friends of mine recently decided to take up collecting and playing the table-top miniature game Warhammer 40k. I collected a bunch of this stuff when I was a kid and I’m excited to finally have a reason to unpack it from storage and give it another go. Why is this relevant to a development blog? Simply because I now have a reason to make a small little library that would be useful for doing some number crunching related to the die rolls that take place in the game.

Dev Talks at Work

Steve Smith blogged a while back about how one of the best times to teach something is while you are learning the topic or right after. You will still remember the steps it took to reach your conclusions and the hardships you found along the way. These are important for those who are also learning and easily forgotten when you’ve been involved in the subject matter for a while. I don’t plan to re-blog his blog, but rather share an experience.

Configuring Swagger to handle MediatR Commands and Queries

If you are following Jimmy Bogard’s style of MediatR commands and queries that he did within his Contoso University example you’ll find that Swagger does not play nice by default with that type of class nesting.

Securing a Swagger Api with IdentityServer4 - Part 2

This is part 2 of adding Swagger and IdentityServer4 support to a WebApi. Last time we set up the WebApi with Swagger. Now we will add the IdentityServer4 QuickStart sample and tweak it to support our Api. I’m going to move quickly over the setup of the QuickStart as the focus of these posts is on configuration of our WebApi.