I have some code that access an API out on the web. One of the API\'s parameters allows me to let them know that I am testing.
I would like to only set this parameter in
This works in asp.net:
if (System.Web.HttpContext.Current.IsDebuggingEnabled) //send email to developer; else //send email to customer;
from Rick Strahl @ Detecting-ASPNET-Debug-mode