public void Start(long interval, SMSMessagingClientImpl smsMessagingImpl) { this.Stop(); if (interval <= 0) { return; } PollerTask pollerTask = new PollerTask(smsMessagingImpl); TimerCallback tcb = pollerTask.Run; timer = new Timer(tcb, null, 2000, interval); }
public PollerTask(SMSMessagingClientImpl smsMessagingImpl) { this.smsMessagingImpl = smsMessagingImpl; }