Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer .WithActors() instanciation ? #583

Open
Dionisos94 opened this issue Mar 10, 2025 · 1 comment
Open

Defer .WithActors() instanciation ? #583

Dionisos94 opened this issue Mar 10, 2025 · 1 comment

Comments

@Dionisos94
Copy link

Hello,

Is there a feature to defer the start of the actors registered on Startup (via .WithActors()) ?

From what I read and experienced, all actors defined in .WithActors() are started at the start of the app.

I would prefer them to be started when they are mentionned as IRequiredActor<> in a constructor that is instanciated.

Is there a configuration to do so or this does not exist ?

Thank you,

@Aaronontheweb
Copy link
Member

There's no way to do this currently - you can always create actors at a later time via actor messaging of course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants