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