c# windows service - not quite the intervals -
private const int intervaltime = 5; protected override void onstart(string[] args) { } public long dosomething() { intervalstopwatch.reset(); intervalstopwatch.start(); facade.execute(); intervalstopwatch.stop(); return intervalstopwatch.elapsedmilliseconds; }
hi, i'd create service similar intervals, purpose count execution time of function "dosomething" , if time >= intervaltime recall function, if not ,wait until passes interval time , call function. best practise this? , don't know how that.
look quartz.net, seems need
Comments
Post a Comment