so: No Service & no extra threads?
Polling:
DateTime _time = DateTime.Now;
...
private void MessagePoll(int intervalSeconds){
Timespan timespan = Timespan.FromSeconds(intervalSeconds)
while(true){
while(DateTime.Now-_time < timespan ){
Thread.Sleep(1000);
}
PollMessages();
reset the time.
_time = DateTime.Now;
}
}
You can also just use
Thread.Sleep(intervalSeconds*1000)