Thread Safety in .NET–Difference Between using Monitor.Enter and Monitor.Exit and lock

   When we want to develop ThreadSafe solutions .NET two of the options that we can use are Monitor and lock. But what exactly happens when we use one and another? What are the differences between one and the other?    Basically the difference is that lock really emits code that places a a Monitor inside a try…finally block. So the real difference is that lock really gives us a exception proof Monitor, since it makes sure that it gets free of that locking even if an exception occurs.    So lets see a sample of that:      Imagine this … Continue reading Thread Safety in .NET–Difference Between using Monitor.Enter and Monitor.Exit and lock

Microsoft TechDays 2010 Portugal – Entity Framework 4.0 Evolution and Future

   So another session that I did at Microsoft TechDays 2010 Portugal was around Microsoft Entity Framework 4.0 Evolution and features we can expect in the future. And being a 400 Level session I tried to do it as much sample based and interactive as possible, by asking the attendees what were their normal pains when using Entity Framework or any other ORM framework that they were working on, and show a sample of how to do that. Unfortunately there wasn’t as much interaction as I was expecting, but still we could see the most recent evolutions on this technology. … Continue reading Microsoft TechDays 2010 Portugal – Entity Framework 4.0 Evolution and Future

Microsoft TechDays 2010 Portugal – Microsoft Silverlight Analytics Framework – 360° look

   It has been a while since I last wrote about my Microsoft TechDays 2010 Portugal sessions, and being really true, it’s been a while since I wrote anything at all, but here I go now of to another start in writing.   So another session that I did at the Portuguese TechDays 2010 event was about Microsoft Silverlight Analytics Framework, and this was done with my friend Ricardo Castelhano. The purpose of this presentation was to give a 360° view of this new Silverlight Framework and what it could mean for our solutions. And as you know Analytics is … Continue reading Microsoft TechDays 2010 Portugal – Microsoft Silverlight Analytics Framework – 360° look