Beispiel #1
0
 public static ActorRef ActorOf(this ActorRefFactory factory, Action <IActorDsl, IActorContext> config, string name = null)
 {
     return(factory.ActorOf(Props.Create(() => new Act(config)), name));
 }
Beispiel #2
0
 public static ActorRef ActorOf <TActor>(this ActorRefFactory factory, string name = null) where TActor : ActorBase, new()
 {
     return(factory.ActorOf(Props.Create <TActor>(), name: name));
 }