public void Init() { TimeSpan result = ConfigUtil.Parse <TimeSpan>("备份间隔", TimeSpan.FromMinutes(5d)); _timer = new Timer(DoWork, null, result, result); }