コード例 #1
0
 private void Pause()
 {
     _resumingSynchronizationContext = _resumingSynchronizationContext ?? _synchronizationContext.ChangeActorTaskKind(ActorTaskTraits.Resuming);
     SynchronizationContext.SetSynchronizationContext(_resumingSynchronizationContext);
     _shouldPause = true;
 }
コード例 #2
0
 public ActorTaskScheduler(ActorId actorId)
 {
     _actorId = actorId;
     _synchronizationContext = new ActorSynchronizationContext(new ActorTaskFactory(this), ActorTaskTraits.None);
 }