A conduit to the voices in my head
Browse by Tags
All Tags »
RSLS »
.Net (
RSS)
Sorry, but there are no more tags available to filter with.
-
|
In a continuation from my previous post , I wanted to provide a quick example of how a combination of ContextBoundObjects and ContextAttributes can allow complete access to message interception and processing in the .Net framework (in this case, intercepting exceptions and logging them) with minimal code injection/dependencies in your existing code base simply by placing an attribute on a class, and inheriting from ContextBoundObject . For a quick high level primer on this subject and how it relates...
|
-
|
Haacked (correctly) mentions in the comments of a previous post that using an attribute based system for the logging service I’m currently working on could be troublesome due to the fact that attribute parameters in .Net must be constants; i.e. you can’t use values provided in a configuration file as the compiler will complain loudly if you attempt to use a non-constant value. The reason for this is simple enough: Attributes are simply objects that get embedded into the assembly they...
|
-
|
I’ve always enjoyed writing application frameworks…you know, the stuff that works behind the scenes to make an application actually…well, work. One thing every application needs is some sort of instrumentation framework built in (logging/tracing/exception management) to make it run more smoothly, and also to alert operators/infrastructure staff when something does go wrong. There are plenty of solutions already out in the wild that address the above, but something I’ve been working on for the past...
|