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

Fixed issue with functions in nested classes not being found #526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

woojamon
Copy link

Should fix #401, but also fixes an issue I was having with defining functions inside nested classes, where the runtime wouldn't discover them.

I couldn't run most of the tests in the solution for some reason, but I was able to run the relevant NestedFunctionMethodsAreExported and FunctionMethodsAreExported tests to verify new functionality according to red/green testing.

The only difference in the tests is the NestedFunctionsClass in test/Microsoft.NET.Sdk.Functions.Generator.Tests/FunctionJsonConverterTests.cs, line: 112

112: var functions = converter.GenerateFunctions(new[] { TestUtility.GetTypeDefinition(typeof(NestedFunctionsClass)) });

@net-foundation-cla
Copy link

net-foundation-cla bot commented Sep 15, 2021

CLA assistant check
All CLA requirements met.

@woojamon woojamon changed the title Fixed issue with nested functions not being found Fixed issue with functions in nested classes not being found Sep 15, 2021
@woojamon
Copy link
Author

Looks like the build failed due to some issue with trying to access an azure storage account. Unfortunately I'm not sure if I can fix that. Tests passed though :)

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.

Durable Activity Functions in nested classes do not get discovered by function.json generator since SDK 1.0.31
1 participant