Is there a command that will stop the execution of my program?
I have a service that is processes an exchange account via telnet every 10 minutes. During one point of execution the application could possibly have a response from the telnet session when there are NO e-mails in the folder, which would look something like this:
* 0 EXISTS
so since this really isn't an error I don't want to throw an error - I just want to stop the program at that point. There isn't really a good place for me to do some sort of count comparison either - not without rewriting a lot of code anyway so an If count < 0 Then ...
statement would not really work in this case IMHO.
So is it possible for me to just stop my application at that point since there's no point in continuing if there are no e-mails in the account?
MORE INFO: The response from telnet is generated in a class library. The program is not running in a winform or a console app. A Windows Service calls a method from my utilities class which starts the execution by making calls to other classes in my project. This response is generated in one of the classes which was started by the utilities class.