public override IActorRef Build(IUntypedActorContext context, string name) { return(context.ActorOf ( context.DI().Props <Erc20BalanceIndexingActor>(), name )); }
public virtual IActorRef Build(IUntypedActorContext context, string name) { return(context.ActorOf ( context.DI().Props <T>(), name )); }
public override IActorRef Build(IUntypedActorContext context, string name) { var router = new SmallestMailboxPool(_serviceSettings.NrOfTransactionMonitors); return(context.ActorOf ( context.DI().Props <TransactionMonitorActor>().WithRouter(router), name )); }
public static IActorRef CreateActor(IUntypedActorContext context, Type actorType, string name) { var actorName = actorType.Name + "." + name; var actor = context.Child(actorName); if (!actor.Equals(ActorRefs.Nobody)) { return(actor); } var actorProps = context.DI().Props(actorType); actor = context.ActorOf(actorProps, actorName); return(actor); }
public static IActorRef ActorOf(this IUntypedActorContext context, ActorMetadata actor) { return(context.ActorOf(context.DI().Props(actor.ActorType), actor.Name)); }