Reputation: 126
I am developing a .net component. Is there any foolproof way of identifying whether a web application or a windows application is calling it?
Upvotes: 1
Views: 125
Reputation: 187030
Check for
HttpContext.Current
which gets or sets the HttpContext object for the current HTTP request.
Upvotes: 2