Akka.Actor.ActorCell.CreateNewActorInstance C# (CSharp) Method

CreateNewActorInstance() protected method

protected CreateNewActorInstance ( ) : ActorBase
return ActorBase
        protected virtual ActorBase CreateNewActorInstance()
        {
            var actor = _props.NewActor();

            // Apply default of custom behaviors to actor.
            var pipeline = _systemImpl.ActorPipelineResolver.ResolvePipeline(actor.GetType());
            pipeline.AfterActorIncarnated(actor, this);
            
            var initializableActor = actor as IInitializableActor;
            if(initializableActor != null)
            {
                initializableActor.Init();
            }
            return actor;
        }