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