Exemplo n.º 1
0
 public Mailbox(ActorInfo ownerActorInfo, SimpleActorRuntime runtime)
 {
     this.ownerActorInfo = ownerActorInfo;
     this.runtime        = runtime;
     mailbox             = new List <T>();
     mutex = new object();
 }
Exemplo n.º 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);
 }