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 · 1 comment
Open

Feature request: Pluggable actor factories #645

jasonvasquez opened this issue Nov 18, 2024 · 1 comment

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
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

@dapr-bot dapr-bot added the stale label Jan 17, 2025
@WhitWaldo WhitWaldo removed the stale label Jan 18, 2025
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

3 participants