Browse by Tags

Event Centric: storing and consuming events
[Disclaimer: I don’t think this disclaimer is needed, but just to be on the safe side. The opinions expressed herein are my own personal opinions and do not represent in any way my company's view, that of any customer current or past, or any current,...
Event Centric: super-charge your model with domain events to enable business intelligence
I’ve shown in my previous post how interesting domain events can be mined using the Reactive Extensions for .NET. Now we need to raise those events when things happen to our domain. The typical way you’d publish events from your domain is simply adding...
Event Centric: finding key business value by leveraging domain events and reactive extensions
Reactive Extensions (Rx) is one of the coolest additions to .NET ever. However, they have been largely ignored by the mainstream, in a significant part because (IMO) it’s seen as a UI technique , with samples that show how to handle mouse moves, drag...
How to mock a dynamic object
Someone asked me how to mock a dynamic object with Moq, which might be non-obvious. Given the following interface definition: public interface IProject { string Name { get; } dynamic Data { get; } } When you try to setup the mock for the dynamic property...
Making regex authoring easier to read and maintain
I’m spiking ideas on how to make my regular expressions easier to read and maintain for the dev who comes after me (that could be myself in 3 months, meaning I will surely have forgotten everything about how that crazy regex worked). I’m aware and wary...
How to do reflection with a dynamic style
I’m not advocating *private* reflection (invoking private/internal fields, properties and methods), but we all know that there are those corner cases where you just can’t avoid it. And there’s a whole lot of scenarios when there are legitimate uses of...
Posted 26 May 2011 03:38 AM by Daniel Cazzulino
Filed under:
Building NuGet extensions in 10 minutes, or how to contribute to NETFx
From the documentation : How to contribute NETFx relies on the CodePlex mercurial fork/pull process for contributions. The explanation on how to contribute to NuGet applies roughly in its entirety to NETFx. Install the NETFx Contributor VSIX from the...
Posted 20 May 2011 12:49 PM by Daniel Cazzulino
Filed under:
Introducing NETFx, or the end of Common.dll and Helpers.dll
From the project home page : What Lightweight NuGet packages with reusable source code extending core .NET functionality, typically in self-contained source files added to your projects as internal classes that can be easily kept up-to-date with NuGet...
Posted 20 May 2011 11:43 AM by Daniel Cazzulino
Filed under:
Querying WCF endpoints using Web API
In previous versions of the Web API , you could query your REST endpoints that exposed an IQueryable<T> server-side, kinda “Linq to WCF” as @gblock said. This was immensely useful and an important driver (among others) for me to move away...
Posted 19 May 2011 07:48 PM by Daniel Cazzulino
Filed under:
How to easily test WCF Web Api services
Given the many cross-cutting concerns you can cover using the new Web API pipeline , it’s not a bad idea to have a bunch of integration-style tests that cover the actual running service end to end. This is pretty straightforward nowadays: create the service...
Posted 19 May 2011 04:13 AM by Daniel Cazzulino
Filed under:
More Posts Next page »

Search

Go

This Blog

News

     

      Microsoft MVP Profile

Syndication