You can initiate a periodic maintenance check using the Timer object. You can run your service requests in the Elapsed event.
private void t_Elapsed(object sender, ElapsedEventArgs e)
{
}
, ToString() . , GUI , .
private delegate void TextUpdateHandler(string updatedText);
private void UpdateServerStatuses(string statuses)
{
if (this.InvokeRequired)
{
TextUpdateHandler update = new TextUpdateHandler(this.UpdateServerStatuses);
this.BeginInvoke(update, statuses);
}
else
{
}
}