Windows Service with timer

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
 
E

Eliyahu Goldin

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top