Do you know the JSON Patch format? The RFC6902 defines the structure to express a list of operations to apply over a JSON Document. This format is designed to be the payload of an HTTP PATCH method.
The format isn't difficult, you can easily understand the rules and build it manually. But, I confess that sometimes I struggle with it, specially when I'm testing a PATCH to a complex object. So... I built a Tool to help me.
Have you heard about Prefer Header for HTTP? The RFC-7240 defines how this header can be used by a client, in order to request that certain behaviors be employed by a server while processing a request.
Why does it matter? You probably have consumed API's where you use the HTTP POST or PUT method to modify a resource and the server returns a complete representation of the resource. In other cases the API only returns the Identifier of the resource created, for example.
What if you want to defer to the client to specify which optional behavior is preferred? That's why you need to know about the HTTP Prefer Header.
Imagine that you are working on a code base that you are really proud of. Everything is building up together with great quality and you reach the moment where you need to send a mail. Simple task to you for sure.
You know that eventually you will need to send emails in other points of your application and because you master the DRY principle you decide to write an "Utils" class.
Good idea, isn't it? NO!!!! Absolutely no!
Why not? What's wrong with an "Utils" folder or an Utility class?
Do you know that index management is under your responsibility and you need to pay attention to how fragmented they are? If you are reading this post, probably you know that (I hope that you didn't find it in the hard way).
Azure SQL Database takes care of a lot of maintenance tasks, but keeping your Indexes healthy isn't one of them.
Indexes get fragmented and fragmented indexes is a performance killer. The good news is that I can help you dealing with that.
Have you taken a look into Cake Build?! It's awesome, isn't it?
Probably you are already convinced, but you are having trouble convincing your boss that it's worth to give him a chance.
To help you I give you here five compelling reasons they can't argue with.
You can find here the slides and demos that have been used, as well as some references related to the theme.
Topshelf is an amazing framework that let you easily host and build Windows services.
Topshelf is really extensible, but recently I struggled to find how to configure a custom argument to the service.
This post is simple tip to help you create custom arguments to a Topshelf service and use it in the command line.
This is simple tip to help you create Web Deployment Packages with Cake.
Esta semana tive a oportunidade de falar um pouco sobre a minha experiência com CQRS na Comunidade NetPonto.
Se não tiveste a oportunidade de assistir, coloco aqui os slides, o vídeo da sessão, bem como algumas referências sobre o tema.
In the early days of Azure WebJobs use Dependency Injection was a little bit tricky because the Triggered methods were only static methods.
Since the WebJobs SDK 1.0.1 you are no longer limited to static methods and that can change how you approach Dependency Injection on WebJobs.
In this blog post I will show how you can use Unity to inject dependencies into your WebJobs.