@anisha.silva
i have 2 instanses of the handler class as primary and secondary. in the start of the appliacation the primary and th secondary handler is set. what i want to do is once the primary is set up every one minute i need to send a msg to the health monitor updating the status.
Read this and used the example:
http://msdn.microsoft.com/en-us/library/system.web.mail.mailmessage.aspx
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
I dont beleive that anisha.silva is asking about email messages. This seems to be related to MVC if I am not mistaken. unfortunately, I do not have experience in this area.
JorgeM
Industrious Poster
4,000 posts since Dec 2011
Reputation Points: 294
Solved Threads: 543
Skill Endorsements: 115
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
LastMitch - the link you provided me is to monitor a web application, but i want to monitor just one class in my applicatin
Nice diagram!
So you want to monitor One Class in the Application.
Have you try to create Alert by sending a message to the Admin?
Like for example, if there is some activity in that One Class and it will alert you by sending an message to the Admin to let you know that there is some activity in that One Class?
So it's kinda like monitor that One Class.
Is this something you are looking for?
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
well actually i want to monitor 3 classes in the diagram, Handler, Result Engine and the Query Engine,
Like what hometownnerd suggest place date and time in the database have the health monitors check for the date and time looks good in the long run.
Base on your code you want three and maybe in the future you need to add another code for the new one. By having a query it will keep the code in tact.
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
I think hometownnerd mention 1 database and creating a query for health monitors to fetch the id.
So i should have 3 db tables in the database
You have 3 database or 3 tables relating to Handler, Result Engine and the Query Engine?
And each database has Handler, Result Engine and the Query Engine in it?
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
i was asking whether i should have 1 database and 3 tables for each class or
1 database and 3 tables (Handler - 1 , Result Engine - 2 ,Query Engine - 3).
I think in long run this is the a better option if you need to update or add another class to the website.
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45