Hi,
I'm sharing some of my code between DW and non-DW projects. Is there a proper way to check programmatically if I am inside a DW context? Everything I've tried to use in the Dynamicweb libraries throws null references.
I know I could put up try-catch statements, but I'd much prefer a simple bool or value that returns null or something similar.
A common situation is when i execute code where I want to log information. I'd prefer to log it to DW, but I pbviously can't when not running in DW context. I'd like to make a check for it rather than meet an exception that I need to handle.
Regards
Kasper