TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rami Naidu
NA
26
793
Execute Timer Object with Threads in Service c#
Jan 23 2018 6:53 AM
I have to write a windows service. My requirement is as below.
I will get multiple frequency list dynamically for example 1 sec, 1 min, 5 min.
I have a method DoWork() in my windows service which will actually processes my core logic.
I don't need to wait for the response of the DoWork() method. So i have to run this using Thread.
DoWork() method should get executed for every 1 sec, 1 min and 5 min and each execution should be in an independent thread.
Can anyone provide an example for this? or any suggestion on how to do this.
Reply
Answers (
1
)
Auto Shutdown Server windows 2016
SharePoint 2016