简体   繁体   中英

Akka.net Adds a random number to Actor name under /user

i have An actor that i want to Access remotely but Akka.net adds a random number to the Actor name Even if i provided the name explicitly, example:

var VotingServer= System.ActorOf(Props.Create(()=> new VotingServerActor()),"VotingServerActor"); 

but Akka.net adds a random number to this actor making it impossible to address remotely.

i have searched everywhere and i have read the docs and i could not find anything, can someone tell me how to stop this random naming

The purpose of using Akka is to not address the actors separately. Just call actorRef to get the actors.

var VotingServer= System.ActorOf(Props.Create(()=> new VotingServerActor()),"VotingServerActor"); 
var message = new VotingMessage();
VotingServer.Tell(message,Sender);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM