Solved

C# windows service listener

Posted on 2013-01-04
1
482 Views
Last Modified: 2013-01-20
Greetings,
I am building a windows service that gets information when a scheduled task is complete.

I see alot of info on how to GET the status, but unless I am constantly querying the task monitor I won't get what I need.

I was wondering if there is a way to have my service listen for a task to be executed, then do some querying...

For example, i ahve a scheduled task AT123
I don't want to ask every 5 seconds if it was executed,
i want to listen to it to do something when it's executed...

thanks
0
Comment
Question by:Evan Cutler
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 38745170
I immediately thought of the "observer pattern" to solve this. A quick search brought up this posting:

http://stackoverflow.com/questions/693050/implementing-observer-pattern-using-wcf

I think something like what this guy did would be what you might be looking for. Basically, set this up so that when the task completes, it calls the event across WCF.
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question