WebHeartBeatEvent Customization

G

Guest

First, kudos to the development team that put together the Health Monitoring
API. Compared to previous logging frameworks, this one is so much nicer to
work with--cleaner API, cleaner configuration, and, so far, no missing
features.

In fact, I found a new feature I really, really like...the HeartBeatEvent.
But...is it possible to get ASP.Net to use my subclassed HeartBeatEvent and
not the standard? That is, I have a few additional items that I would like
logged with the HeartBeat that are important to my application. I can
subclass WebHeartBeatEvent without any problem, but short of putting in my
own background thread that raises the event, it won't get called.

What I'd really like to do is tell ASP.Net, "BTW, use MyWebHeartbeatEvent
whenever you want to log a heart beat". As a new feature the documentation
for the API is a little thin and I didn't see anything that said I could do
this, but perhaps it is possible, just not yet documented. Any clues?

Thanks for any hints,
Cassandra
 
G

Guest

I think so. I can fire the event manually and it shows up in the EventLog,
but the automatic HeartBeat that fires at the heartbeat interval is just the
system heartbeat. Do I have to do something to tell ASP.Net to use my
derived HeartBeat class instead of the default HeartBeat class?
 
B

Brock Allen

Oh, I see what you're saying. Unfortunately no, the call that instantiates
the WebHeartbeartEvent class is hardcoded to use that type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top