"景先生毕设|www.jxszl.com

C# ActorPath类代码示例

2023-12-29 16:59编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中ActorPath类的典型用法代码示例。如果您正苦于以下问题:C# ActorPath类的具体用法?C# ActorPath怎么用?C# ActorPath使用的例子? 这里精选的类代码示例或许可以为您提供帮助。 示例1: RoutedActorCell public RoutedActorCell(ActorSystem system, InternalActorRef supervisor, Props routerProps, Props routeeProps, ActorPath path, Mailbox mailbox) : base(system, supervisor, routerProps, path, mailbox) { RouteeProps = routeeProps; routerConfig = routerProps.RouterConfig; Router = routerConfig.CreateRouter(system); routerConfig.Match() .With(r => { var routees = new List(); for (int i = 0; i < r.NrOfInstances; i++) { var routee = this.ActorOf(RouteeProps); routees.Add(new ActorRefRoutee(routee)); } AddRoutees(routees.ToArray()); }) .With(r => { var routees = routerConfig.GetRoutees(this).ToArray(); AddRoutees(routees); }); Self = new RoutedActorRef(path, this); }
原文链接:http://www.jxszl.com/biancheng/C/556477.html