Hi,
I'm using EIF to Raise Events on each page(asp.net) to find
out method loding time.
Is there any way I can dynamically intercept any page_load
or method call to Inject (or Insert) the Raise event, like
on demand or only on when we find a problem in production system?
Any thoughts would be greatly appreciated.
Thanks,
Gopi
Jay B. Harlow [MVP - Outlook] - 16 Jan 2005 16:31 GMT
Gopi,
Rather then use page_load, have you considered one of the many events on
System.Web.HttpApplication (events in your global.asax).
For example: HttpApplication.BeginRequest occurs when your request starts
(before Page_Load) and HttpApplication.EndRequest occurs when your request
finishes (after Page_Unload).
In addition to global.asax, you could create an HttpHandler that you
register in your web.config.
Hope this helps
Jay
> Hi,
>
[quoted text clipped - 9 lines]
>
> Gopi
Gopinath Varadharajan - 20 Jan 2005 22:27 GMT
Jay,
Yes that is what I tried, used an httpModule.
but the problem is, I have to specifically
do a event.raise (on each class or method ) where i need the trace to be
logged ? and the end of trace comes only upon Dispose (? ) which again
means classes that implements IDispose can only end the trace ...
How can I insert this in the code ? or is there any other way ? or
didn't i not understood EIF properly ?
Any help would be greatly appreciated.
Thanks,
Gopi
VIshnu - 17 Jan 2005 06:59 GMT
I dont get the question correctly...but will try to answer from what I
understand. If you use System.Web.UI.Page, the corresoponding handler
provides you with all event models. If you want to create your own event
mechanisms etc use the HttpHandler to process a request. However, if you are
handling existing codebase and want to intercept using httpmodule is a
better option. Look at msdn on Httpmodules and HttpHandlers for more..dont
know if this helps..
Chz
Vishnu
> Hi,
>
[quoted text clipped - 9 lines]
>
> Gopi