I'm writing my first .NET service with Visual Studio, and the IDE added a comment inside the OnStop()
method:
Public Class AFirstService
' [...]
Protected Overrides Sub OnStop()
' Add code here to perform any tear-down necessary to stop your service.
End Sub
' [...]
End Class
Is this comment implying that this is somehow recommended to destroy objects when the service is stopped?