CQRS EventSource with Semantic Logging

Topics: Semantic Logging Application Block
May 31, 2013 at 9:23 AM

I have been reading Semantic Logging and i have been thinking if is possible use it as EventSource for CQRS due to their similiar characteristics.

has any sense?

May 31, 2013 at 5:47 PM
In CQRS the class is EventSourced which is part of the Event Sourcing pattern used in that project. This is in contrast to the EventSource class that is intended to be used for diagnostic tracing (System.Diagnostics.Tracing.EventSource).

So, to me they are conceptually different. However, I can see how you could think of using EventSource as a sort of messaging infrastructure. In general, I would recommend against that. I can think of a variety of reasons not do to this (e.g. EventSource only supports a predefined set of types, non-standard use could cause future maintenance issues, etc.).

Randy Levy
Enterprise Library support engineer
Support How-to