473,382 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

WebHeartBeatEvent Customization

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
Nov 21 '05 #1
3 2111
Did you configure your custom event in web.config in the <healthMonitoring>
element via <eventMappings> and <rules>?

http://msdn.microsoft.com/library/de...aght000011.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen
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

Nov 21 '05 #2
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?

"Brock Allen" wrote:
Did you configure your custom event in web.config in the <healthMonitoring>
element via <eventMappings> and <rules>?

http://msdn.microsoft.com/library/de...aght000011.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


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

-Brock
DevelopMentor
http://staff.develop.com/ballen
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?

"Brock Allen" wrote:
Did you configure your custom event in web.config in the
<healthMonitoring> element via <eventMappings> and <rules>?

http://msdn.microsoft.com/library/de...ary/en-us/dnpa
g2/html/paght000011.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen
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

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel Meilleur | last post by:
Hi, I try to use a customization stylesheet following example given by B.Stayton (http://www.sagehill.net/docbookxsl/CustomGentext.html#CustomGenText) i.e.: <?xml version='1.0'?>...
2
by: PatLaf | last post by:
I would like to be able to build a datagrid that has two buttons in each cell similar to the functionality provided by the winforms numericupdown control. I have an app that will require the user to...
0
by: Margarita | last post by:
Where can i find information about customization (on C#) the DHTML Editing Component ActiveX Control . I want to implement some(2,3,4...) input elements for data with one ToolBar on the...
2
by: Marco | last post by:
Hi experts! For customization purpose i need to substitute a class that is implemented within an assembly, with a new class (with the same name). I haven't the sources but I'd like to rewrite...
0
by: Irfan | last post by:
I want to ask whether Crystal Report 9 (and DotNet Version of Crystal Report) supports Run-Time customization (Grouping) or not? If it does then how? Also I want to ask whether they support...
0
by: aky | last post by:
Hi Im performing Parameter Fields Runtime Customization for crystal reports through VS.NET 2003, using C# as code Behind the ParameterFieldName property (and the other properties such as...
1
by: robert d via AccessMonster.com | last post by:
I'm a fledgling developer and am just starting to get my app out to specific clients. I have been asked to bid on a project because my app already does over 90% of what the client wants. My...
0
by: jason_cuteboy | last post by:
Hi all, Completely new to Vb.net and trying to create a simple VB Office Excel application/spreadsheet. When I built the project, and excel opens up an error comes up.... Customization assembly...
1
by: nudrat | last post by:
Hi All, I am a new Solid Edge customization Programmer. So, If anybody is there in this field, please let me know, so that I can clarify some doubts. Regards Nudrat
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.