I wrote a HotKey component a few month ago and some reported me a bug that suspend, shutdown or restart did not work while the Hotkey was in use.
This bug was fixed and I updated the code on the original post: http://dotnetjunkies.com/WebLog/principal/archive/2005/04/21/69872.aspx
I was trying to find a way to register a hotkey without the use of the form's handle and the code that was on that post was one of those tries...
What you would do when you see the following code:
public
object GetObject()
{
if (myObject != null)
return myObject;
else
return null;
}
For the last month I received over a 1000 spam emails from my blog. I guess it is a good time to remove the comments from my blog for a few weeks...
Service Locator 1.0 is an application block which integrates with Enterprise Library 1.0. It's a general-purpose, provider-driven object factory, which can be used to create instances of component servers, following the Service Locator design pattern.
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=41A621E5-3628-4C71-8985-710C4475F347