Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        private IMessageQueue <T> fMissed; // only this one use it in run mode

        public ActorMailBox()
        {
            fQueue = QueueFactory <T> .Cast();

            fMissed = QueueFactory <T> .Cast();
        }