public void RegisterActor(UntypedActor actor) { actor.SetActorSystem(this); string name = actor.GetType().Name; actors.Add(name, actor); }
public void DeliverByDestination(Entity entity) { UntypedActor actor = Find(entity.destination); if (actor.GetType().Name == "DeadLetters") { Logger.Debug("Incoming entity has invalid destination: " + entity.destination); } else { actor.Tell(entity); } }