Geeks With Blogs


Currently Reading

CLR via C#m
Under The Influence(of code) Abhijeet Patel's blog April 2009 Entries
Handling WorkflowRuntime events for IIS hosted WCF + WF services
The WorkflowRuntime class has a host of interesting methods and useful events. Events such as Completed, Perssited, Idled are invaluable when debugging and in understanding how a workflow instance is behaving. These events are easily accessible when self hosting the runtime since you can just hook up event handlers for these events and react to these events as you see fit. But, when the workflow runtime is hosted in IIS/WAS/Cassini host, you don’t have a direct handle to the runtime for hooking up ......

Posted On Sunday, April 26, 2009 10:38 PM

ASP.NET Caching
I needed a quick way to cache some data for a feature I’m currently working on. The scenario is that the user should be able to type ahead and be presented with a list of matching options (AJAX auto complete). This data is coming from an external web service and is exposed via the core API of the application which in turn is exposed over WCF. So for AJAX to be able to get to this data it must talk to the WCF service, but this is not directly possible since cross site scripting is not allowed in the ......

Posted On Friday, April 24, 2009 11:22 PM

.NET Developer Tool List
Every once in a while when I have nothing better to do, I’ll do a Google search for “.net developer tools” or "must have tools for .net” to see if there are any tools out there to enhance my development experience, Scott Hanselman has THE MASTER LIST which he religiously maintains and that for the most part is my one stop shop since I know that I’ll almost always find something useful in his listing. But I did also want to try to have an online list to which I can add my own findings. Following is ......

Posted On Friday, April 17, 2009 10:25 PM

Passing Continuations
Last Time we saw how to perform Actions asynchronously and I promised to talk about continuations. Continuations also known as CPS or Continuation Passing Style is a mechanism for passing in code that would normally execute after a function call to the callee function as an argument, perhaps most well known in Scheme. For example if you were to call a function Sum which returns an int and print out the result like so: public static int Sum(int n) { //sure we could use (n*(n+1))/2 but this is just ......

Posted On Wednesday, April 15, 2009 11:47 PM

Entity Framework Object Context - AWAITING COMMAND
Now I know that the Entity Framework has a disconnected data access model i.e. connections to the database and opened and closed only when you retrieve data that has not been retrieved or you explicitly request a call to the database or you call SaveChanges on the ObjectContext. I was really surprised to find that inspite of disposing the ObjectContext, there was still an active connection maintained to the database. The following code fragment shows the typical usage for ObjectContext. Right after ......

Posted On Friday, April 3, 2009 10:43 PM

Copyright © Abhijeet Patel | Powered by: