public static IRequestTarget Convert(SurrogateForIRequestTarget value)
 {
     // not necessary because client cannot send IRequestTarget
     // but implemented to keep this class symmetrical.
     if (value == null)
         return null;
     return new BoundActorTarget(value.Id, value.Address);
 }
Example #2
0
 public static IRequestTarget Convert(SurrogateForIRequestTarget value)
 {
     // not necessary because client cannot send IRequestTarget
     // but implemented to keep this class symmetrical.
     if (value == null)
     {
         return(null);
     }
     return(new BoundActorTarget(value.Id, value.Address));
 }
Example #3
0
            public static IRequestTarget Convert(SurrogateForIRequestTarget value)
            {
                if (value == null)
                {
                    return(null);
                }

                var actor = (IActorRef)((new ActorRefBase.Surrogate(value.Path)).FromSurrogate(CurrentSystem));

                return(new AkkaReceiverTarget(actor));
            }
            public static IRequestTarget Convert(SurrogateForIRequestTarget value)
            {
                if (value == null)
                    return null;

                var actor = (IActorRef)((new ActorRefBase.Surrogate(value.Path)).FromSurrogate(CurrentSystem));
                return new AkkaReceiverTarget(actor);
            }