log4net PatternLayout and PatternConverter
I have the following scenario:
I'm using Unity dependency injection container and interception techniques to log some WCF operation calls. I need to log the input parameters and also the...
nettiers – GetBy Index problem with StoredProcedure long name
Today I've discovered a problem with CodeSmith nettiers templates because it was possible to generate two SPs with the same name, for different entities.
This happens when there are two indexes for...
Add WCF Message Id in every log4net message
I needed to have the WCF message identifier in every log message because I needed to correlate the log messages from a particular WCF call.
The best way to achieve...
Custom properties log4net
I had the need to add some custom properties in my log4net messages.
I used the log4net contexts like this:
log4net.ThreadContext.Properties = messageId;
And then updated my rolling file appender:
<!-- Rolling File...
Quartz.NET: A simple single producer/multi consumer backoff strategy
When handling a producer/consumer problem where there's a single source of data to be consumed by multiple entities, you might arrive at a state where your consumers will start...
Adapting .netTiers for Enterprise Library v6.0 and .NET v4.5
Code generation is now more than ever a core activity in software development. With the growing complexity of systems and the need to meet deadlines, getting your database access...
Using Deployment setting on Production Environment
When i studied for the Microsoft exam (70-562, Microsoft .NET Framework 3.5, ASP.NET Application Development) i found an interesting setting that i didn’t known, the Deployment.This configuration setting ensures...
LINQ to XML: How to use it?
Frequently, the most of people use XPATH to do xml manipulation. But if you want another way to manipulate XML, you can use LINQ to XML.Supposing that we have...
How to serialize an array or a list?
I needed to serialize an array few weeks ago and i found one way to perform this serialization.I performed the serialization for the following objects:_persons.Add(new Employee { FirstName =...
Cast vs OfType: Which should i use to cast an object’s list?
In this post i will explain what’s the differences between Cast() and OfType() methods using LINQ, and i will also explain when we should use each method. These methods...