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

Feature request: Pluggable actor factories #645

Open
jasonvasquez opened this issue Nov 18, 2024 · 0 comments
Open

Feature request: Pluggable actor factories #645

jasonvasquez opened this issue Nov 18, 2024 · 0 comments

Comments

@jasonvasquez
Copy link

Describe the proposal

I would like to be able to inject dependencies into my Actor instances as they are activated. Right now, it appears that the ActorManager's createActor function only allows instantiating the class directly. At time of registration, it would be ideal if I could provide an (optional) factory function that could instantiate the class and then hand it back to Dapr to continue. Alternatively, perhaps the runtime could accept a subclass of ActorManager that could extend it to provide custom factory functions.

@dapr-bot dapr-bot added the stale label Jan 17, 2025
@WhitWaldo WhitWaldo removed the stale label Jan 18, 2025
@dapr dapr deleted a comment from dapr-bot Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants