BackgroundWorker’s RunWorkerCompleted event’s weird behavior in Outlook Add In developed using VSTO 4.0

If one uses “BackgroundWorker” class in an application.Then, as per the documentation and the discussion found online. It is suppose to raise “RunWorkerCompleted” and “ProgressChanged” on the same thread. On which the object of “BackgroundWorker” was created. Which in case of Windows form application would be UI Thread. But, if one uses “BackgroundWorker” class in [...]

Learn Windows Phone 7 Development , Day-4 : Hello! World – Deep Dive 3

In this post I will start from where I left in the last post. So, I will be talking about various application level events in a Windows Phone Application. These events are pretty similar to events in Global.asax.cs in case of ASP.net and Application Object in case of Windows Application. These events are registered in [...]

Mocking HttpContext, HttpResponse, HttpRequest, HttpSessionState etc. in ASP.Net

While developing web application using ASP.Net. If one wants to follow TDD, there are a lot challenges that one has to face. One of the challenge is to mock various web based objects like HttpContext, HttpRequest etc.. In this post I will talk about mocking following web based objects HttpContext HttpRequest HttpResponse HttpSessionState ( Page’s [...]

Learn Windows Phone 7 Development , Day-3 : Hello! World – Deep Dive 2

Today, we will talk about what happens when you compile a Windows Phone 7 application and what is the basic workflow of the application. There will be some concepts which may sound familiar to Silverlight developers. When you compile a Windows Phone 7 Silverlight application, for each “.xaml” file 2 files are generated one with [...]

Learn Windows Phone 7 Development , Day-2 : Hello! World – Deep Dive 1

Yesterday we build the “Hello! World” application. Today, we will have a look at the files that got created when we created the project. Following is the list of files that are visible in Solution Explorer Visual Studio AppManifest.xml – This is a file used by Silverlight , primary purpose for Silverlight is to store [...]

Learn Windows Phone 7 Development , Day-1 : Hello! World

Disclaimer ::  This series is for people who are already comfortable with Microsoft.Net development doesn’t matter web or windows. Even though Windows Phone Development requires one to know Silverlight. But, Silverlight is not must for this series of tutorials.Since, we will be learning that as well, and this series is only focused on windows phone [...]

Correct Usage of Finalize and Dispose

Couple of day back I was reading an article by Jimmy Bogard Dependency Injection in ASP.NET MVC: Views. Over there I found an interesting thing that is correct usage of finalize and dispose. There are articles that discuss finalize, discuss and garbage collector. So, I will just give a small overview after the correct usage. [...]