protected override void OnStart(string[] args) { Loggy.Add("Starting CrowdCodeService."); timerDelegate = new TimerCallback(DoSomething); seconds = secondsDefault; stateTimer = new Timer(timerDelegate, autoEvent, 0, seconds * 1000); }
private void log(string msg) { switch (command.LoggingLevel) { case Busker.Data.Constants.LoggingLevel.Debug: Loggy.Debug(msg); break; case Busker.Data.Constants.LoggingLevel.Off: break; default: Loggy.Add(msg); break; } }