Amit
Amit

Reputation: 126

How can a code identify if it is being called by windows application or web application

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

Answers (1)

rahul
rahul

Reputation: 187030

Check for

HttpContext.Current

which gets or sets the HttpContext object for the current HTTP request.

Upvotes: 2

Related Questions