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

Use ActivatorUtilities.GetServiceOrCreateInstance for TaskActivity in Azure Functions #105

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

jviau
Copy link
Member

@jviau jviau commented Jan 9, 2023

Changes ActiviatorUtilities.CreateInstance<T> to ActivatorUtilities.GetServiceOrCreateInstance<T> inside the source generated code for Azure Functions.

resolves #88

@jviau jviau requested a review from cgillum January 9, 2023 18:26
Copy link
Member

@cgillum cgillum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I look forward to us having some Functions-specific automated tests to give us some coverage of these scenarios.

@cgillum
Copy link
Member

cgillum commented Jan 9, 2023

Also, consider updating CHANGELOG.md as part of this PR.

@jviau
Copy link
Member Author

jviau commented Jan 9, 2023

Testing would be great but having it in a different repo causes the tests to become broken soon as I introduce any breaking change. When/if we move the Azure functions extension package to this repo it will become much simpler.

@jviau jviau merged commit c38ca9f into microsoft:main Jan 9, 2023
@jviau jviau deleted the func-get-service branch January 9, 2023 19:44
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

Successfully merging this pull request may close these issues.

Allow registering Function classes as services in the container
2 participants