Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Executing a Method by Timer after fixed Interval

$
0
0

I have a class as follows :-

Cell{

List<Call> Active;

List<Call> Queued;

Timer t;

.

.

public void CheckQueue()

{

// Check Queued List for calls and add to Active List

}

}

I want to execute this method : CheckQueue once every second ... but i want to ensure if its previously invoked then that thread has been stopped. If this is not ensured then i might get REDUNDANT data in Active List. 

I need help with this


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>