public static void CompleteInitialize(BaseActor anActor) { CheckArg.Actor(anActor); anActor.fListBehaviors = new List <IBehavior>(); anActor.fCompletions = QueueFactory <IBehavior> .Cast(); anActor.fMailBox = new ActorMailBox <object>(); if (anActor.Tag == null) { anActor.Tag = new ActorTag(); } }
private IMessageQueue <T> fMissed; // only this one use it in run mode public ActorMailBox() { fQueue = QueueFactory <T> .Cast(); fMissed = QueueFactory <T> .Cast(); }