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