private void Dispatch(BaseRunnable runnable)
 {
     try
     {
         runnable.Run();
     }
     catch (Exception ex)
     {
         Log.Error("Error while processing thread", ex);
     }
 }
示例#2
0
 public void SetRunnable(BaseRunnable runnable)
 {
     _runnable = runnable;
 }
 private Thread CreateDispatchThread(BaseRunnable runnable)
 {
     return(new Thread(() => Dispatch(runnable)));
 }