Ejemplo n.º 1
0
        Task Activate()
        {
            var path = ActorPath.From(Actor.Name, IdentityOf(this));

            var system    = ServiceProvider.GetRequiredService <ClusterActorSystem>();
            var activator = ServiceProvider.GetRequiredService <IActorActivator>();

            var runtime = new ActorRuntime(system, this);

            instance = Actor.Activate(this, path, runtime, activator);
            invoker  = Actor.Invoker(system.Pipeline);

            return(invoker.OnActivate(instance));
        }
Ejemplo n.º 2
0
 public virtual Task OnActivate(Actor actor) => Next.OnActivate(actor);