I want to know what is the best way to detect from where a request has been sent (function calls)
The meaning: my project goes like this:
- Engine
- Web project (uses the engine)
- Test Project-console project (uses the engine)
Now I want that some code will not be executed in the function when I am running the Test project.
I know that I can send a boolean parameter to detect this but I want to know if there is any why to detect if the request comes from web project or not...
Thanks!!
Orel.