Ejemplo n.º 1
0
 protected BackgroundWorker(IBackgroudWorkerProxy workProxy, WorkerConfig config)
 {
     _workProxy = workProxy;
     _config    = config;
 }
Ejemplo n.º 2
0
 public void Excete <T>(Action method, WorkerConfig config) where T : IBackgroundWorkerDo
 {
     ExetuteMethod = method;
     Timer.Period  = config.IntervalSecond * 1000;//将传入的秒数转化为毫秒
     Timer.Start();
 }