示例#1
0
        private void LookupModuleMessageHandler(LookupModuleMessage message)
        {
            IActorRef actorRef = LookupModule(message.ModuleKey, message.ModuleVersion);

            if (actorRef == ActorRefs.Nobody)
            {
                Sender.Tell(new LookupModuleFailedMessage(message));
            }
            else
            {
                Sender.Tell(new LookupModuleSucceededMessage(message, actorRef));
            }
        }
        private void LookupModuleMessageHandler(LookupModuleMessage message)
        {
            IActorRef actorRef = LookupDataOwner(message.DataOwnerKey, message.DataOwnerVersion);

            if (actorRef == ActorRefs.Nobody)
            {
                Sender.Tell(new LookupModuleFailedMessage(message));
            }
            else
            {
                actorRef.Forward(message);
            }
        }