public Object CreateMainLoopTimer(MainServerLoop mainLoop, uint period) { myTimer = new Timer(period); myTimer.Elapsed += (sender, e) => {mainLoop();}; myTimer.Enabled = true; return myTimer; }
public Object CreateMainLoopTimer(MainServerLoop mainLoop, uint period) { myTimer = new Timer(period); myTimer.Elapsed += (sender, e) => { mainLoop(); }; myTimer.Enabled = true; return(myTimer); }
public Object CreateMainLoopTimer(MainServerLoop mainLoop, uint period) { return CreateTimer((s) => {mainLoop();}, null, 0, period); }
public Object CreateMainLoopTimer(MainServerLoop mainLoop, uint period) { return(CreateTimer((s) => { mainLoop(); }, null, 0, period)); }