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 ensure that your subscribers stay happy, one of the foremost services you need to provide […]

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 the service. What do we really want from a Publisher service?

A Publish method (called PublishMagazine)
A Subscribe […]

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 in C# 4.0). The idea of publishing goes hand-in-hand with ‘raising an event’  – and […]

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 notified about.

Add a new Console App (Add New Project) to the WCFPublishSubscribe solution.  Call it […]

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 subscribers to use.
Step 1 : Ensure Service Loads Ok

Use CRL F5 to start the Magazine […]

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 I encountered was:
AddressAccessDeniedException: HTTP could not register URL http://+:8080/
Step 1 – On running the Subscriber […]