Esempio n. 1
0
 public override IActorRef Build(IUntypedActorContext context, string name)
 {
     return(context.ActorOf
            (
                context.DI().Props <Erc20BalanceIndexingActor>(),
                name
            ));
 }
Esempio n. 2
0
 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);
        }
Esempio n. 5
0
 public static IActorRef ActorOf(this IUntypedActorContext context, ActorMetadata actor)
 {
     return(context.ActorOf(context.DI().Props(actor.ActorType), actor.Name));
 }