async Task Activate(ActorPath path) { var system = ClusterActorSystem.Current; actor = Activator.Activate(path.Type); actor.Initialize(path.Id, system, this, ActorPrototype.Of(path.Type)); await actor.OnActivate(); }
async Task Activate(ActorPath path) { var system = ClusterActorSystem.Current; var runtime = new ActorRuntime(system, this); var prototype = ActorPrototype.Of(path.Type); actor = Activator.Activate(path.Type, path.Id, runtime); actor.Initialize(path.Id, runtime, prototype); await actor.OnActivate(); }