protected void SetContinuation(TaskBase continuation, TaskContinuationOptions runOptions) { Task.ContinueWith(_ => ((TaskBase)(object)continuation).Run(), Token, runOptions, TaskManager.GetScheduler(continuation.Affinity)); }