简体   繁体   English

Akka.net 在 /user 下的 Actor 名称中添加一个随机数

[英]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:我有一个我想远程访问的演员,但 Akka.net 向演员名称添加了一个随机数即使我明确提供了名称,例如:

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.但是 Akka.net 向这个 actor 添加了一个随机数,使得它无法远程寻址。

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.使用 Akka 的目的是不单独处理参与者。 Just call actorRef to get the actors.只需调用 actorRef 即可获取演员。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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