I am writing a vb.net program that will run as a service to move data from one database to another. When certian conditions arise I want the service to stop. What is the best way to terminate a service in a clean manner?
Me.Stop()