Browse by Tags

All Tags » C# (RSS)

Unique Constraints in the context of CQRS with Event Sourcing by REA_ANDREW

I got thinking today about what action to take in the scenario where I want to have unique constraints on a value. To put into some context, I will use forums and the like to explain.  A Forum has threads and it is necessary that each Thread have...
Filed under: ,

CQRS and Replaying state events from a snapshot by REA_ANDREW

Still reading the blog posts from Greg Young and derived works and one of the points which I have just got my head through is the scenario where you may have 100,000 + events for a particular object. Basically, to obtain the state for said object you...
Filed under: , ,

Having a think about CQRS and Eventual Consistency by REA_ANDREW

I have been watching and reading a few blogs and videos recently from various sources including Udi Dahan and Greg young and other blogs which have been based on those works.  I am getting my head around CQRS and the different way of thinking which...
Filed under: , ,

Consume WCF Service InProcess using Agatha and WCF by REA_ANDREW

I have been looking into this lately for a specific reason.  Some integration tests I want to write I want to control the types of instances which are used inside the service layer but I want that control from the test class instance.  One of...
Filed under: , ,

AutoMapper MappingFunction from Source Type of NameValueCollection by REA_ANDREW

I have had a situation arise today where I need to construct a complex type from a source of a NameValueCollection.  A little while back I submitted a patch for the Agatha Project to include REST (JSON and XML) support for the service contract. ...
Filed under: , , ,

Compiling examples for consuming the REST Endpoints for WCF Service using Agatha by REA_ANDREW

I recently made two contributions to the Agatha Project by Davy Brion over on Google Code, and one of the things I wanted to follow up with was a post showing examples and some, seemingly required tid bits.  The contributions which I made where:...
Filed under: , , , ,

A BinaryContentResult for ASP.NET MVC by REA_ANDREW

Today in work I had a requirement where I wanted to output binary content to the response output stream.  I also want to stay with the MVC Controller for serving this content and so wanted a result I could add my data to and return it.  To my...
Filed under: , ,

Programmatic Drawing with Silverlight 2.0/3.0 – A Digital Clock by REA_ANDREW

This is the second in a small series I am writing on programmatic drawing inside Silverlight. The first post I did on this was an analogue clock and it can be found here: http://www.andrewrea.co.uk/blog/2009/08/12/ProgrammaticDrawingWithSilverlight2030AnAnalogueClock...
Filed under: ,

Creating an Extended Content Result for ASP.NET MVC by REA_ANDREW

I had a requirement on a small home project I am working on, where I need to add some more information to a content result than was there.  More specifically I had to add the status code and also have access to the response header collection. ...
Filed under: , ,

An idea relating to, exposing the resource files of different assemblies for consumption by the client side by REA_ANDREW

Files Please download the example solution for this post from the following url. http://lab.andrewrea.co.uk/ResourcesExampleMvc.rar Summary Ok, I have been writing this one as I went, whilst thinking and deving so my opinion on this has changed from when...
Filed under:
More Posts Next page »