Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / January 2005

Tip: Looking for answers? Try searching our database.

Tracing using Enterprise Instrumention Framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gopi - 16 Jan 2005 00:08 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.