Conclusion

I l @ ve RuBoard

As you've seen, Windows services (formerly known as Windows NT services) are not just for C/C++ developers anymore. The .NET Framework provides several classes in the System.ServiceProcess namespace that allow for the easy creation and manipulation of Windows services. The ServiceController class provides the essentials for controlling, monitoring, and interacting with Windows services, and the ServiceBase class provides a base class that all services must derive from. It is highly recommend that you use the Event Log for recording significant events that occur during the lifetime of the service. You can do this by simply setting the AutoLog property on the service to true .

Debugging a service can prove to be a more difficult than debugging standard Windows-based applications, so the Trace class was introduced as another option for tracing the execution of a service. Finally, if your service requires a user interface, you should attempt to separate the user interface from the service and place it into a secondary application that communicates with the service or the data generated by the service.

I l @ ve RuBoard


Designing Enterprise Applications with Microsoft Visual Basic .NET
Designing Enterprise Applications with Microsoft Visual Basic .NET (Pro-Developer)
ISBN: 073561721X
EAN: 2147483647
Year: 2002
Pages: 103

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net