private static Action ExtractAction(IRunnable runnable) { var r = runnable as Runnable; return r == null ? runnable.Run : r._action; }