public void Start() { TimerDI = new TimerCollection(); //创建容器 try { BootStrap boot = new BootStrap(); TimerDI = boot.Boot(); foreach (string key in TimerDI.Timers.Keys) { TimerDI.Timers[key].Start(); } if (_OnSuccess != null) _OnSuccess(); } catch (Exception ex) { Dispose(); if (_OnFail != null) _OnFail(ex); else throw ex; } }