H
Harjit S. Batra
How can a function tell if it has been called from a ASPX page or ASMX web
service versus being called from a console or windows app? I need to extend
the EventLog class to write events and need to know the name of the app or
the name of the page or the name of the service calling the WriteEvent
method, so that the event source can be correctly identified? I cannot even
compile code as a DLL with the HttpContext class as part of the code! Any
help will be appreciated.
Harjit
service versus being called from a console or windows app? I need to extend
the EventLog class to write events and need to know the name of the app or
the name of the page or the name of the service calling the WriteEvent
method, so that the event source can be correctly identified? I cannot even
compile code as a DLL with the HttpContext class as part of the code! Any
help will be appreciated.
Harjit