This is an old revision of the document!
Table of Contents
Study Questions - Audio Creation
CDEx Settings
Bitrate = 80 kbps
Mono
Quality = Very high (q = 0)
Questions To Be Recorded
C8L3Q1: How do you debug a service?
Answer: Install it, start it and then attach a debugger to the service's process.
C8L3Q2: When creating a service, which methods should you override and which are optional?
Follow up question: What should you also do if you override any optional method?
Answer: The methods OnStart and OnStop should be overridden. The methods OnPause, OnContinue and OnShutdown are optional.
Follow up answer: If OnPause and/or OnContinue are overriden, set ServiceBase.CanPauseAndContinue to true. If OnShutdown is overriden set ServiceBase.CanShutdown to true.
C8L3Q3: What four things does the ServiceInstaller class define?
Answer: The service description, display name, service name and start type.
C8L3Q4: What does the ServiceProcessInstaller class define?
Answer: The service account settings.
C8L3Q5: What are the three start types for a service and which is the default?
Answer: Automatic, manual (default) and disabled.
C8L3Q6: What are the four types of accounts that can be used a security context for a Windows service?
Follow up question: Which is the default, which is the most secure and which is the most privileged?
Answer:
- Local service (most secure)
- Network service
- Local system (most privileged)
- User (default)
C8L3Q7: What tool is used to manually install a service?
Answer: InstallUtil.exe.
C9L1Q1: What are two most important classes used to deal with application settings and what namespace are they in?
Answer: Configuration and ConfigurationManager, which are in the System.Configuration namespace.