| Chapter: 2
Implementing service processes, threading, and application domains in a .NET Framework application |
|---|
| Event log
Write an event to the event log to allow a service to interact with users. The service does not require a logged-in user in order to execute and run under the context of any user including the system. |
| Service
A service does not have a user interface or any visual output. Therefore, it can be easily run in the background to monitor an operating system without any user logging. |
| Installutil tool
The Installutil tool is used to install a Windows application. The .NET class library provides some predefined installer classes that helps in application installation. |
| ClickOnce technology
ClickOnce technology eliminates the difficulties in updating Windows-based applications, dependence of multiple application programs on shared components, and allowing permissions only to administrative users for application installations. |
| OnCustomCommand
If a class derives from the ServiceBase class, the OnCustomCommand method is executed when the Service Control Manager (SCM) passes a custom command to the service. |
| CanHandlePowerEvent property
When the CanHandlePowerEvent property is set to true, the power event command is passed to the service and then the OnPowerEvent method is called. |
| ThreadPriority enumeration
The ThreadPriority enumeration contains five priority members, which are a follows:
|
| Join
The Join method is used to block the calling thread until a thread terminates. |
| WaitSleepJoin
The WaitSleepJoin state is used to specify that a thread is blocked. |
| WaitCallBack delegate
Implement multiple threads using WaitCallBack delegate in an application. |
| Try/Catch block
Handle the DivideByZeroException using the try/catch block. |
| Thread class
The Thread class of the System.Threading namespace is used to create a thread and execute it. |
| Thread.IsBackground
The Thread.IsBackground property is used to run a process in background. A thread is either a background thread or a foreground thread. |
| Timer class
The System.Threading namespace is used to work with the Timer class and other classes related to the Timer class. |
| Semaphore class
The Semaphore class is used to create a semaphore that can satisfy up to three concurrent requests. |
| Mutex class
The Mutex class is used to synchronize access to a protected resource. |
| Sleep method
The Sleep method is a static method and always acts on the currently running thread. |
| Regsvcs.exe
The Regsvcs.exe tool is used to load and register assemblies as well as generate, register, and install a type library into a COM application. |
| Launch Condition
The Launch Condition tab in the Project Properties dialog box is used to specify conditions for installation. These conditions can be used in conjunction with a file, registry, or component search. |
| File System editor
The File System editor can be used to add project outputs to a deployment project. It can be used to specify the location on the target computer where files are to be installed, and to create shortcuts on the target computer. |
| Custom Actions editor
The Custom Actions editor is used to define custom actions that can execute code at the end of an installation process to perform actions, such as the installation of location-specific files, which cannot be handled during installation. |
| User Interface editor
The User Interface editor allows a developer to change the visual screen that the a user sees while installing an application. |
Great text and nice blog.
I just wanted to comment and say that I really enjoyed reading your blog post here. It was very informative and I also digg the way you write! Keep it up and I’ll be back to read more in the future
Great text and nice site.
Great text and nice site.
Thanks for the info, been looking everywhere for information on this.
Thank you for the great information. I look forward to seeing more articles and what else you have to offer!
I will immediately snatch your rss nurture to stay abreast of any updates. Charitable moil and much success in your profession efforts!
Hey may I reference some of the communication from this blog if I relation back to you?
Reading by means of means of your enjoyable despatch, inclination assist me to do so sometimes.
We ve just go through information provided on this spot. I should say I’m so satisfied with the high quality of material. It offers me a large amount of prudence when it comes to my wisdom. I had been have no idea this very before during my universal. Thanks just for this. I appear to be looking forward to get more improvements. Continue the great work.
Someone I handiwork with visits your orientation frequently and recommended it to me to skim also.
Searching for this for some time now – i guess luck is more advanced than look for engines