Synopses & Reviews
Get the practical reference to developing Windows services with Visual Basic 2008. Addressing the leading trend of software as a service, this guide illustrates how developers with intermediate Visual Basic skills can design and implement Web services. It addresses a critical gap in the developer literature today, showing that services can be developed with Visual Basic 2008—and are not restricted to XML-based applications or Microsoft Visual C#. Software as a service is changing the dynamic between rich and thin clients. As device types multiply, users expect “always-on” connectivity to link them to the robust Web and corporate applications they use on the desktop. Services, which offload data storage and processing tasks to a server, run efficiently on Web platforms on any device. Services do not need to be a complex coding task—and this is the ideal resource for creating modern, service-oriented applications. It covers integration of services with other Microsoft technologies, including Microsoft BizTalk Server, Microsoft Internet Information Services (IIS), and Microsoft SQL Server. Plus, you’ll get extensive code snippets and sample applications.
About the Author
During more than 10 years at Microsoft, senior consultant Michael Gernaey has designed and written many large-scale application solutions for customers and focused on providing guidance to Visual Basic programmers on how to create robust, modern, service-oriented applications.
Table of Contents
Dedication; Introduction; Who This Book Is For; How This Book Is Organized; System Requirements; Find Additional Content Online; The Companion Web Site; Support for This Book; Questions and Comments; Defining Windows Services; Chapter 1: Writing Your First Service in Visual Basic 2008; 1.1 Generating the Project; 1.2 Understanding the Wizard Code; 1.3 Writing Our First Code; 1.4 Making the Service Installable; 1.5 Building, Installing, and Deploying; 1.6 Summary; Chapter 2: Expanding Your Service with Threads; 2.1 Cleaning Up the Service from the Previous Chapter; 2.2 Understanding Threads; 2.3 The New Code; 2.4 Install and Test Your Service; 2.5 What Is Thread Cleanup?; 2.6 Extending <OnPause> and <OnContinue>; 2.7 Summary; Chapter 3: Services and Security; 3.1 Security Privileges and Services; 3.2 Summary; Creating Interactive Windows Services; Chapter 4: Services and Polling; 4.1 Polling the File System; 4.2 Adding a Module File; 4.3 Adding New Polling Code; 4.4 Updating the Service Events; 4.5 Writing a New Thread Method; 4.6 Monitoring with Multiple Threads; 4.7 Extending the Threading Model; 4.8 Adding a FileWorker Class; 4.9 Implementing the Worker Class; 4.10 Creating the FileWorkerOptions Class; 4.11 Updating <Tutorials.ThreadFunc>; 4.12 Using Configuration Files; 4.13 Updating <Tutorials.ThreadFunc>; 4.14 Summary; Chapter 5: Processing and Notification; 5.1 SMTP Notifications; 5.2 File Processing; 5.3 Advanced Processing; 5.4 Implementing a Solution; 5.5 Summary; Chapter 6: User Input, Desktop Interaction, and Feedback; 6.1 Understanding Service Feedback; 6.2 Configuring a Service to Interact with the Desktop; 6.3 Summary; Chapter 7: Data Logging: Processing and Storing Data in SQL Server 2005; 7.1 Configuring Microsoft SQL Server; 7.2 Understanding a LINQSQL Class; 7.3 Using LINQ To SQL; 7.4 Updating the FileWorker Class; 7.5 Data Tracking Validation; 7.6 Implementing the Record Failure Code; 7.7 Data Migration from One Data Store to Another Data Store; 7.8 Reporting Processing Failures; 7.9 Optimizing the LINQSQL Class; 7.10 Summary; Services That Support IT and the Business; Chapter 8: Monitoring and Reporting with WMI; 8.1 Using WMI with Services; 8.2 Using the WMI Class; 8.3 Extending the WMI Implementation; 8.4 WMI System Monitoring; 8.5 Service Notification; 8.6 Summary; Chapter 9: Talking to the Internet; 9.1 Reading and Parsing ASP Pages; 9.2 Adding a Dynamic Status ASPX Page; 9.3 FTP and Your Service; 9.4 Using FTP in the Service; 9.5 Uploading Data Using FTP; 9.6 Summary; Chapter 10: Services That Listen; 10.1 Listening with TCP/IP; 10.2 Service Validation; 10.3 Allowing Multiple Connections; 10.4 Summary; Chapter 11: Advanced Security Considerations and Communications; 11.1 What Does Securing the Service Mean?; 11.2 Services as Clients; 11.3 Summary; Advanced Windows Services Topics; Chapter 12: Scheduling, Configuring, Administering, and Setting Up Windows Services; 12.1 What Does Scheduling Mean?; 12.2 Administration of Services; 12.3 Installing Services; 12.4 Summary; Chapter 13: Debugging and Troubleshooting Windows Services; 13.1 Debugging Services; 13.2 Troubleshooting and Monitoring Services; 13.3 Performance Monitor; 13.4 Examples of Debugging and Monitoring Your Service; 13.5 Summary; Chapter 14: Adding Performance Counters; 14.1 Types of Performance Counters; 14.2 Adding Counters to Your Service; 14.3 Implementing Our Counters in Code; 14.4 Summary; Appendices; Microsoft Internet Information Server (IIS); Installing Microsoft IIS; Microsoft File Transfer Protocol Service; Installing Microsoft FTP Service; Microsoft SMTP Service; Installing SMTP Services on Windows XP; About the Author;