Samples

Last month I wrote a guest blog post for JetBrains; a detailed step by step guide for creating a custom TeamCity MetaRunner to notify NewRelic that a new deployment has occurred based on a case study I wrote earlier in the year called “From Chaos, Through Fear, To Confidence” which details an ALM and DevOps […]


Example of a full-width bleed using Bootstrap

by Matthew Adams

In my previous post, I listed some top tips for getting started with bootstrap, and then produced a basic example layout with box-outs, sidebars and bleeds. One of the most common questions that has come from that post is “how do I achieve a section with a full-width bleed (e.g. for a full-width background), part […]


In the previous posts I’ve explained how to set up installers in your application, how to use the content factory, and how to set up the composition framework for ASP.NET. In this post I will show you how to debug the container. If you try to resolve a component that has missing dependencies, the Container will […]


To use endjin composition framework with an ASP.NET MVC 4/WebAPI application, firstly pull in the Endjin.Core.Composition.Web package from NuGet. Following the steps from the previous posts, you can set up your interfaces, concrete types and installers. No further initialization is required though – the package includes extensions for configuring and initializing the container, and also […]


As I explained in this post, the framework provides a set of installers for registering components against interfaces in the container. Another powerful tool in the composition framework is the ContentFactory. This provides methods for registering and getting content based on a contentType string. When getting content, if the contentType is not found in the […]


In the last post I introduced v2.0 of our open source, composition framework. In this post, I’m going to cover a quick example of how to get started with the basics of the endjin composition framework. Firstly, we define an interface for some type Then, we create a concrete type for our interface Now we can […]


PowerShell Best Kept Secrets: Splatting

by Howard van Rooijen

It’s been over a year since I wrote An Omega Geek’s Guide to Learning PowerShell, and I thought it was about time, with all the recent  noise about scriptcs, that PowerShell should get some more love as it’s a much overlooked and misunderstood gem of the .NET and Windows ecosystem. When I announced in the office that […]


Example Responsive Layout Using Bootstrap

by Matthew Adams

In my previous post, we listed a few learnings from our experience of using Boostrap as a layout engine in an HTML5 website. In this post, I’ve put together a basic example that illustrates some of the techniques we talked about. I’ve structured a page with a header; left-hand sidebar; body content with a call-out […]


Integration testing with Web API

by Mike Larah

I recently had do a project where I wanted to run integration tests on some Web API controllers, so this post is to describe the method for doing so. The way to do it is to mock an HttpServer and HttpClient class, but first you have to change some of the config to get them […]


Calculating Distance using SQL Server Spatial CLR Types

by Howard van Rooijen

I created a quick sample to solve a problem today and thought I’d post the code as it took me a while to track down all the relevant bits of information. The problem I wanted to solve was that I wanted to be able to geocode a user’s postcode and then calculate the distance between […]