Click here to Skip to main content
15,914,163 members
Home / Discussions / C#
   

C#

 
AnswerRe: Fetch the content of a website Pin
Peace ON27-Jul-10 2:53
Peace ON27-Jul-10 2:53 
GeneralRe: Fetch the content of a website Pin
Krishna Varadharajan27-Jul-10 3:11
Krishna Varadharajan27-Jul-10 3:11 
GeneralRe: Fetch the content of a website Pin
Pete O'Hanlon27-Jul-10 3:01
mvePete O'Hanlon27-Jul-10 3:01 
GeneralRe: Fetch the content of a website Pin
Bernhard Hiller28-Jul-10 21:51
Bernhard Hiller28-Jul-10 21:51 
AnswerRe: Fetch the content of a website Pin
Pete O'Hanlon27-Jul-10 3:02
mvePete O'Hanlon27-Jul-10 3:02 
GeneralRe: Fetch the content of a website Pin
Krishna Varadharajan27-Jul-10 3:14
Krishna Varadharajan27-Jul-10 3:14 
QuestionHow can i convert text file to pdf file? Pin
sush827-Jul-10 1:04
sush827-Jul-10 1:04 
AnswerRe: How can i convert text file to pdf file? Pin
N a v a n e e t h27-Jul-10 1:12
N a v a n e e t h27-Jul-10 1:12 
AnswerRe: How can i convert text file to pdf file? [modified] Pin
PIEBALDconsult27-Jul-10 7:19
mvePIEBALDconsult27-Jul-10 7:19 
AnswerRe: How can i convert text file to pdf file? Pin
souidi abderrahman27-Jul-10 21:50
souidi abderrahman27-Jul-10 21:50 
QuestionHow can i read pdf file in .net? Pin
sush826-Jul-10 23:00
sush826-Jul-10 23:00 
AnswerRe: How can i read pdf file in .net? Pin
Peace ON27-Jul-10 0:49
Peace ON27-Jul-10 0:49 
AnswerRe: How can i read pdf file in .net? Pin
Pete O'Hanlon27-Jul-10 1:00
mvePete O'Hanlon27-Jul-10 1:00 
GeneralRe: How can i read pdf file in .net? Pin
sush827-Jul-10 1:06
sush827-Jul-10 1:06 
QuestionSetup project help Pin
TSWatson26-Jul-10 22:47
TSWatson26-Jul-10 22:47 
AnswerRe: Setup project help Pin
N a v a n e e t h27-Jul-10 0:56
N a v a n e e t h27-Jul-10 0:56 
AnswerRe: Setup project help [Repost] Pin
Peace ON27-Jul-10 2:36
Peace ON27-Jul-10 2:36 
QuestionGlobalization and Localization in common dll C# Pin
ISharda26-Jul-10 22:41
ISharda26-Jul-10 22:41 
AnswerRe: Globalization and Localization in common dll C# Pin
Peace ON27-Jul-10 0:59
Peace ON27-Jul-10 0:59 
QuestionTo use or not to use worker thread in Windows Service? Pin
JoeSchmoe00726-Jul-10 8:39
JoeSchmoe00726-Jul-10 8:39 
AnswerRe: To use or not to use worker thread in Windows Service? Pin
Luc Pattyn26-Jul-10 8:43
sitebuilderLuc Pattyn26-Jul-10 8:43 
GeneralRe: To use or not to use worker thread in Windows Service? Pin
JoeSchmoe00726-Jul-10 8:47
JoeSchmoe00726-Jul-10 8:47 
GeneralRe: To use or not to use worker thread in Windows Service? Pin
Luc Pattyn26-Jul-10 8:49
sitebuilderLuc Pattyn26-Jul-10 8:49 
AnswerRe: To use or not to use worker thread in Windows Service? Pin
PIEBALDconsult26-Jul-10 8:51
mvePIEBALDconsult26-Jul-10 8:51 
I generally use a System.Timers.Timer -- they work for me.

An additional benefit (to me anyway) is that the handler method enters and exits on each cycle rather than running indefinitely. In my opinion, the method shouldn't need to know that it is implementing a periodic function. Using a Timer allows me to separate responsibilities.

The downside is that if the code takes longer to execute than the timer's interval, you wind up with two executions running at the same time -- you would need to allow for that or prevent it.
GeneralRe: To use or not to use worker thread in Windows Service? Pin
JoeSchmoe00726-Jul-10 9:00
JoeSchmoe00726-Jul-10 9:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.