private void OnLoadUserRequest(LoadUserRequest rq)
        {
            var userActor = Context.Child(rq.ExternalUserId);

            if (userActor == ActorRefs.Nobody)
            {
                // Need to try a bit harder!
                _finder.Tell(rq, this.Sender);
            }
            else
            {
                Sender.Tell(new LoadUserResponse(true, userActor));
            }
        }
Exemplo n.º 2
0
        private void OnLoadUser(LoadUserRequest rq)
        {
            var profile = _userService.CreateUserProfile(rq.ExternalUserId, rq.Forename, rq.Surname, rq.EmailAddress);

            Context.Parent.Tell(profile, this.Sender);
        }