(K. Scott Allen) The Task Parallel Library is a joy to work with – it’s easy to use and thorough. Recently I was using Parallel.ForEach to process a large collection, but wanted to stop processing early, across all threads, if an individual item met specific criteria.
Tag: Development
C#/.NET Toolbox: Creating a ‘Safer’ Task Dispose()
(James Michael Hare) This post is another in a series that contains generic utility classes I’ve developed along the way to help make coding a bit easier.
SpinWait.SpinUntil and the Task Parallel Library
(Jeffrey Juday) Blocking executing code and periodically checking some value before proceeding is commonly done in asynchronous and parallel programming. Often blocking and checking is combined with some sort of timeout. SpinUntil, a static method on the SpinWait structure; combines blocking, waitin
Burned by the .NET Client Framework
(Michael K. Campbell) I recently wasted over an hour dealing with a horrible development experience that made me wonder if I had strayed into some sort of sadistic alternate universe. And since bumping into this little slice of hell was so simple, I thought I’d share what I learned as a public servi
Silverlight: Basic Integration with SharePoint 2010 WCF Data Services
(Mahesh Sabnis) If you have a requirement of integrating SharePoint 2010 with various client applications built using WinForm, WPF and Silverlight etc. then you can make use of the various out-of-box programming facilities provided by SharePoint 2010.
Appending An Array Of jQuery Objects To The DOM
(Ben Nadel) Often times, when I am creating HTML in a thick-client application, I am merging the JSON (JavaScript Object Notation) data returned from an AJAX call with a client-side template. The resultant DOM (Document Object Model) nodes are then initialized and appended to the visible document tr
Eliminate Joins by Modifying Entity Framework Models
(Peter Vogel) In a recent article I showed that using Entity Framework navigation properties makes your code considerably simpler than using the more “SQL-like” Joins (though you certainly can do Joins in LINQ). I also suggested that it makes sense to add associations to Entity Framework if it helps
JavaScript View Engines and JSON Services
(Jovan Popovic) This article will present a model for development of pure client-side applications where all the processing logic is implemented using jQuery and information is presented to the user directly on the client side using JavaScript View engines. In this application model, there is no ser
How to display a countdown timer
(Ged Mead) Going through some of my old posts this morning, I saw that this question seems to have been asked a lot. So I thought it was worth posting up an easy way of doing it.
Use Visual Studio 2010 to Profile your ASP.NET Application which is hosted on IIS
(Abhijit Jana) Most of all are well aware about command line profiling for ASP.NET Application using VSPerfASPNETCmd command line tool . This can easily profile your ASP.NET Web applications which is hosted on IIS.
