Agent functionality working fine when I am tracing it.
I have an agent which runs at every 30 seconds and it checks the status of the listener. if the listener are active and running the agent activity just exit. but if the listener is stopped due to any reason we are sending an email notification to the user.
Issue: The email is sent always even the listener is running. When I am tracing the agent the functionality work perfectly fine and it didnot sent the email. But when it is running on its own it is always sending email.