Windows Service with timer

  • Thread starter Thread starter SMG
  • Start date Start date
S

SMG

Hi there,
I created a windows service.

I want that service to make a call to msmq after each 15 minutes.

Where do I place the timer, and how, (timing should be configurable from
outside the service)

Is there any way, i can say my service.sleep(15 minutes)

Thanks,
Shailesh
 
Just create an instance of System.Timers.Timer class in your cod. Decide on
the external source of configuration data (registry? file? database?) and
get the service to read that source. Nothing special.

Note, that the question is not related to ASP.NET. If you need more details,
post to appropriate newsgroups.

Eliyahu
 

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

Back
Top