C# Thread Kullanımı
static Thread _Thread;
public static bool ProgramIsRunning = true;
public void Started()
{
_Thread = new Thread(new ThreadStart(WaitAndRepeat));
_Thread.Start();
}
public void WaitAndRepeat()
{
while (ProgramIsRunning)
{
Thread.Sleep(59000);// threadi uykuya alma (59 saniye)
//ÇAlıştırmasını istediğimiz kodlar
if (DataAccess.Company.SMSAuthority.Cari_Borc_Hatırlatma) SendMessageAutomatic();
}
}
void SendMessageAutomatic()
{
}
You must log in to post a comment.