Archive For The “WCF” Category

Howto: Set up an SSL Offload / Termination Proxy with IIS 7

An SSL termination proxy is a service that sits in front of your web server and converts HTTPS requests to plain HTTP, by offloading the SSL decryption to a separate machine or process. They are commonly used for internet-facing websites, but usually with separate servers. Here’s a quick guide how you can set up your […]

Read more »

One NHibernate session per WCF operation, the easy way

This week I’ve been working on a brownfield Castle-powered WCF service that was creating a separate NHibernate session on every call to a repository object. Abusing NHibernate like this was playing all sorts of hell for our app (e.g. TransientObjectExceptions), and prevented us from using transactions that matched with a logical unit of work, so […]

Read more »

Brownfield CQRS part 4 – Command Dispatcher

In the first two posts I talked about commands and command handlers. Now we need to wire them up to invoke them from your service endpoint. Brownfield CQRS part 1 – Commands Brownfield CQRS part 2 – Command Handlers Brownfield CQRS part 3 – Queries, Parameters and Results Brownfield CQRS part 4 – Command Dispatcher […]

Read more »

Brownfield CQRS part 3 – Queries, Parameters and Results

In the previous two posts, I showed some simple patterns for commands and command handlers. Now let’s talk about the other half of the story: queries! Brownfield CQRS part 1 – Commands Brownfield CQRS part 2 – Command Handlers Brownfield CQRS part 3 – Queries, Parameters and Results Brownfield CQRS part 4 – Command Dispatcher […]

Read more »

Brownfield CQRS part 2 – Command Handlers

In my previous post, I described command DTOs and service methods for booking a table at a restaurant. Now, we just need something to interpret this command, and do something useful with it. Brownfield CQRS part 1 – Commands Brownfield CQRS part 2 – Command Handlers Brownfield CQRS part 3 – Queries, Parameters and Results […]

Read more »