Пример #1
0
 public Mailbox(ActorInfo ownerActorInfo, SimpleActorRuntime runtime)
 {
     this.ownerActorInfo = ownerActorInfo;
     this.runtime        = runtime;
     mailbox             = new List <T>();
     mutex = new object();
 }
Пример #2
0
 public ActorInfo(ActorId id, string name, Task task, CancellationTokenSource cts, SimpleActorRuntime runtime)
 {
     this.id   = id;
     this.name = name;
     this.task = task;
     this.cts  = cts;
     Mailbox   = new Mailbox <object>(this, runtime);
 }