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.
Defining Windows Services
Chapter 1 Writing Your First Service in Visual Basic 2008
Generating the Project
Understanding the Wizard Code
Writing Our First Code
Making the Service Installable
Building, Installing, and Deploying
Summary
Chapter 2 Expanding Your Service with Threads
Cleaning Up the Service from the Previous Chapter
Understanding Threads
The New Code
Install and Test Your Service
What Is Thread Cleanup?
Extending <OnPause> and <OnContinue>
Summary
Chapter 3 Services and Security
Security Privileges and Services
Summary
Creating Interactive Windows Services
Chapter 4 Services and Polling
Polling the File System
Adding a Module File
Adding New Polling Code
Updating the Service Events
Writing a New Thread Method
Monitoring with Multiple Threads
Extending the Threading Model
Adding a FileWorker Class
Implementing the Worker Class
Creating the FileWorkerOptions Class
Updating <Tutorials.ThreadFunc>
Using Configuration Files
Updating <Tutorials.ThreadFunc>
Summary
Chapter 5 Processing and Notification
SMTP Notifications
File Processing
Advanced Processing
Implementing a Solution
Summary
Chapter 6 User Input, Desktop Interaction, and Feedback
Understanding Service Feedback
Configuring a Service to Interact with the Desktop
Summary
Chapter 7 Data Logging: Processing and Storing Data in SQL Server 2005
Configuring Microsoft SQL Server
Understanding a LINQSQL Class
Using LINQ To SQL
Updating the FileWorker Class
Data Tracking Validation
Implementing the Record Failure Code
Data Migration from One Data Store to Another Data Store
Reporting Processing Failures
Optimizing the LINQSQL Class
Summary
Services That Support IT and the Business
Chapter 8 Monitoring and Reporting with WMI
Using WMI with Services
Using the WMI Class
Extending the WMI Implementation
WMI System Monitoring
Service Notification
Summary
Chapter 9 Talking to the Internet
Reading and Parsing ASP Pages
Adding a Dynamic Status ASPX Page
FTP and Your Service
Using FTP in the Service
Uploading Data Using FTP
Summary
Chapter 10 Services That Listen
Listening with TCP/IP
Service Validation
Allowing Multiple Connections
Summary
Chapter 11 Advanced Security Considerations and Communications
What Does Securing the Service Mean?
Services as Clients
Summary
Advanced Windows Services Topics
Chapter 12 Scheduling, Configuring, Administering, and Setting Up Windows Services
What Does Scheduling Mean?
Administration of Services
Installing Services
Summary
Chapter 13 Debugging and Troubleshooting Windows Services
Debugging Services
Troubleshooting and Monitoring Services
Performance Monitor
Examples of Debugging and Monitoring Your Service
Summary
Chapter 14 Adding Performance Counters
Types of Performance Counters
Adding Counters to Your Service
Implementing Our Counters in Code
Summary
Appendices
Appendix Microsoft Internet Information Server (IIS)
Installing Microsoft IIS
Appendix Microsoft File Transfer Protocol Service
Installing Microsoft FTP Service
Appendix Microsoft SMTP Service
Installing SMTP Services on Windows XP
Appendix About the Author
Title:
Programming Windows® Services with Microsoft® Visual Basic® 2008
By:
Michael Gernaey
Publisher:
Microsoft Press
Formats:
Print
Safari Books Online
Print:
February 2008
Pages:
352
Print ISBN:
978-0-7356-2433-7
| ISBN 10:
0-7356-2433-X
Michael Gernaey
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.