threadcontext

ExcecutionContext of Threads.

What does ExcecutionContext.SuppressFlow(); does?? In the following code what exactly gets suppressed?? I've this test code... protected void btnSubmit_Click(object sender, EventArgs e) { Thread[] th = new Thread[100]; Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB"); AsyncFlowControl cntrl ...

Is Log4net threadContext safe to use with WCF hosted in IIS?

I've read in a few places that the log4net threadContext isn't safe to use in an asp.net scenario. Here are a few articles: http://stackoverflow.com/questions/1066062/log4net-threadcontext-and-global-asax http://piers7.blogspot.com/2005/12/log4net-context-problems-with-aspnet.html So my scenario is I want to use the threadContex...

how to insert into database from stored procedure in log4net?

I have to log thread context properties like this: string logFilePath = AppDomain.CurrentDomain.BaseDirectory + "log4netconfig.xml"; FileInfo finfo = new FileInfo(logFilePath); log4net.Config.XmlConfigurator.ConfigureAndWatch(finfo); ILog logger = LogManager.GetLogger("Exception.Logging"); log4ne...