Agatha–Getting Started–First Application

Introduction The advent of WCF has made life simpler for web service developers . Passing complex types, quick serialization,  write once run with multiple bindings (and hence multiple consumers) etc. – have contributed to its popularity. However, larger WCF projects

Read More Agatha–Getting Started–First Application

The Publish Subscribe Pattern in C# and some gotchas

This post does three things: Provides a complete implementation of the publish subscribe pattern in C#. Highlights 4 potential issues that are inherent to ANY publish subscribe implementation – including the one provided here. Provides original, tested workarounds for each

Read More The Publish Subscribe Pattern in C# and some gotchas

A flexible service oriented architecture that handles multiple platforms (multiple devices, multiple databases…)

The Problem Statement Imagine that you have just built a sophisticated application to work against a SQL Server database. You followed a best-practices approach and separated out your presentation, business logic and data access layer. Your application is service oriented

Read More A flexible service oriented architecture that handles multiple platforms (multiple devices, multiple databases…)

Abstract Factory in C# – Equally useful for manufacturing operations (services) and products

This article assumes some familiarity with the Factory pattern. The factory concept is equally useful for creating products (ProductFactory) or for creating services (ServiceFactory). A good way to start is to look at what the client really needs from the

Read More Abstract Factory in C# – Equally useful for manufacturing operations (services) and products

WCF and Publish Subscribe–A Full Example: Running the Client (Subscriber)

This entry is part 6 of 6 in the series WCF Publish Subscribe - A Full Example in C#, Step by Step

This entry is part 6 of 6 in the series WCF Publish Subscribe – A Full Example in C#, Step by StepNow that all the pieces are in place, we are ready to run our client program.  The first error

Read More WCF and Publish Subscribe–A Full Example: Running the Client (Subscriber)

WCF and Publish Subscribe–A Full Example: Client Code

This entry is part 5 of 6 in the series WCF Publish Subscribe - A Full Example in C#, Step by Step

This entry is part 5 of 6 in the series WCF Publish Subscribe – A Full Example in C#, Step by StepThe subscriber needs to know about the service. We will use svcutil.exe to generate the proxy class for the

Read More WCF and Publish Subscribe–A Full Example: Client Code

WCF and Publish Subscribe–A Full Example: The Event Generator

This entry is part 4 of 6 in the series WCF Publish Subscribe - A Full Example in C#, Step by Step

This entry is part 4 of 6 in the series WCF Publish Subscribe – A Full Example in C#, Step by StepThe purpose of the Event Generator code is to publish events (New Magazine Issue Available)  that subscribers will get

Read More WCF and Publish Subscribe–A Full Example: The Event Generator

WCF Publish Subscribe– A Full Example: The Service Side Part 2 (Implementation)

This entry is part 3 of 6 in the series WCF Publish Subscribe - A Full Example in C#, Step by Step

This entry is part 3 of 6 in the series WCF Publish Subscribe – A Full Example in C#, Step by StepOur implementation is based on .NET events (for a non-events based implementation, check out the New IObserver IObservable interfaces

Read More WCF Publish Subscribe– A Full Example: The Service Side Part 2 (Implementation)

WCF Publish Subscribe–A Full Example – The Service Side Part 1 (Interface)

This entry is part 2 of 6 in the series WCF Publish Subscribe - A Full Example in C#, Step by Step

This entry is part 2 of 6 in the series WCF Publish Subscribe – A Full Example in C#, Step by StepThe Service code consists of an Interface (IMagazineService) and its implementation (MagazineService). The Interface defines all the capabilities of

Read More WCF Publish Subscribe–A Full Example – The Service Side Part 1 (Interface)

WCF and Publish Subscribe– A Full Example: Introduction

This entry is part 1 of 6 in the series WCF Publish Subscribe - A Full Example in C#, Step by Step

This entry is part 1 of 6 in the series WCF Publish Subscribe – A Full Example in C#, Step by StepImagine that you are a magazine publishing company. Your revenue depends on subcribers – in particular, happy subscribers. To

Read More WCF and Publish Subscribe– A Full Example: Introduction