예제 #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));
        }
예제 #2
0
 public virtual Task OnActivate(Actor actor) => Next.OnActivate(actor);