Skip to content

Expose a Traits struct for each client operation for easier templating #273

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

Merged
merged 3 commits into from
Oct 6, 2022

Conversation

wravery
Copy link
Contributor

@wravery wravery commented Oct 6, 2022

This is a partial fix for #264, it adds a Traits type in each client operation namespace which make it easier to use in a template.

The rest of it still requires some more thought. Rather than adding explicit template constructors or factory functions, it should be more efficient to optionally include the corresponding schema header and import the identical types into the client namespace. OTOH, that increases complexity and risks pulling a lot more code into clients which don't need to interop with the service code.

@wravery wravery merged commit 7e962a2 into microsoft:main Oct 6, 2022
@wravery wravery deleted the client-api-structs branch October 6, 2022 07:48
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.

1 participant