private void Pause() { _resumingSynchronizationContext = _resumingSynchronizationContext ?? _synchronizationContext.ChangeActorTaskKind(ActorTaskTraits.Resuming); SynchronizationContext.SetSynchronizationContext(_resumingSynchronizationContext); _shouldPause = true; }
public ActorTaskScheduler(ActorId actorId) { _actorId = actorId; _synchronizationContext = new ActorSynchronizationContext(new ActorTaskFactory(this), ActorTaskTraits.None); }