windows service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chibbie23
    New Member
    • Mar 2010
    • 44

    windows service

    i'm new in writing windows service. I have done a basic one, which basically just creates logs whenever the service has been started or stopped.

    Now, i was asked to create a service which will write something on the logs every 30 minutes.

    any suggestions?

    Thanks, and godbless
  • Joseph Martell
    Recognized Expert New Member
    • Jan 2010
    • 198

    #2
    You need to create a timer of some sort. Either the System.Threadin g.Timer or the System.Timers.T imer class. For a service you could use (but should not use) the System.Windows. Forms.Timer. It is meant for windows forms projects and it is easier to use, but it requires you to include a new namespace and add an extra reference to your project that you will not use for any other purpose.

    Comment

    Working...