Windows Services support the ability to automatically perform some defined action in response to a failure. The recovery action is specified in the Recovery tab of the service property page (which can be found in Settings->Control Panel->Administrative Tools -> Services). The Recovery tab allows you to define actions that can be performed on the 1st [...]
Archive for the ‘C#’ Category
Using the Automatic Recovery Features of Windows Services
Posted in .NET, C#, Software, Visual Studio on February 28, 2008 | 8 Comments »
Rethinking the C# using statement
Posted in C#, mocks, nmock on February 11, 2008 | 2 Comments »
I’ve typically used the C# using construct to wrap an instance on an object that has a short lifetime and requires a call to Dispose. The using keyword hides the need to call Dispose explicitly and avoids having to use a try-finally to ensure that Dispose is always called. One example of a class that [...]
