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