Say I have a PDF-Factory dll which generates PDFs.
Besides referencing System.Web
and check for HttpContext.Current == null
,
Question:
Is there any more precise way of knowing if a function in the DLL was called through Web
/Console
/Gui
context ?